/* =============================================
   TOLDOS MURCIA — SHARED STYLES
   Todas las páginas internas importan este CSS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #E8670A;
  --primary-d: #C4540A;
  --primary-l: #FFF0E6;
  --dark:      #1A1A2E;
  --dark2:     #16213E;
  --mid:       #4A4A68;
  --light:     #F8F8FC;
  --white:     #FFFFFF;
  --border:    #E5E5F0;
  --shadow:    0 4px 24px rgba(26,26,46,.10);
  --shadow-lg: 0 12px 48px rgba(26,26,46,.18);
  --radius:    14px;
  --radius-sm: 8px;
  --t:         .3s ease;
  --font:      'Inter', sans-serif;
  --serif:     'Playfair Display', serif;
  --topbar-h:  40px;
  --nav-h:     72px;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font); color: var(--dark); background: var(--white); line-height: 1.65; overflow-x: hidden; max-width: 100%; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── LAYOUT ── */
.container  { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* ── TYPOGRAPHY ── */
.badge {
  display: inline-block;
  background: var(--primary-l); color: var(--primary);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 50px; margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800; line-height: 1.2; color: var(--dark); margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem; color: var(--mid); max-width: 560px; line-height: 1.7;
}
.section-header         { margin-bottom: 52px; }
.section-header.center  { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px; font-weight: 600;
  font-size: .93rem; cursor: pointer; transition: var(--t); border: 2px solid transparent;
}
.btn-primary  { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,103,10,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: var(--light); color: var(--dark); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); }

/* ── TOP BAR ── */
.top-bar {
  background: var(--dark); color: rgba(255,255,255,.72);
  font-size: .8rem; font-weight: 500; padding: 9px 0;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--topbar-h);
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: nowrap; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-item { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); transition: color .2s; white-space: nowrap; }
.top-bar-item a { color: inherit; }
.top-bar-item:hover, .top-bar-item a:hover { color: var(--primary); }
.top-bar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.18); }
.top-bar-badge { background: var(--primary); color: var(--white); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; white-space: nowrap; }

/* ── HEADER / NAV ── */
#header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: box-shadow var(--t);
}
#header.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { width: 42px; height: 42px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.logo-text strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--dark); line-height: 1.1; }
.logo-text span   { font-size: .72rem; color: var(--mid); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--mid); transition: var(--t); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-l); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: 8px;
  transition: background var(--t); flex-shrink: 0;
}
.hamburger:hover { background: var(--light); }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAV DROPDOWN (DESKTOP) ── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex !important; align-items: center; gap: 4px; }
.dropdown-arrow { font-size: .62rem; line-height: 1; transition: transform .25s ease; display: inline-block; }
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open  .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 16px 48px rgba(26,26,46,.18);
  min-width: 272px; padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 2000; list-style: none;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open  .dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: .875rem; font-weight: 500;
  color: var(--mid); transition: background .15s, color .15s;
}
.dropdown-menu li a:hover { color: var(--primary); background: var(--primary-l); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, #0F3460 100%);
  padding: 160px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('img/hero.png') center/cover no-repeat;
  opacity: .08;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero .badge { background: rgba(232,103,10,.2); color: #FFB980; }
.page-hero-title { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.page-hero-sub   { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 600px; line-height: 1.75; margin-bottom: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--t); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--t); overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--dark); padding: 26px 0; }
.trust-bar-inner { display: flex; justify-content: center; align-items: center; gap: 44px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand .logo-text span   { color: rgba(255,255,255,.45); }
.footer-desc { font-size: .88rem; line-height: 1.75; margin: 18px 0 24px; color: rgba(255,255,255,.6); }
.footer-social { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--t); }
.social-link:hover { background: var(--primary); }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .87rem; color: rgba(255,255,255,.6); transition: var(--t); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.55); transition: var(--t); }
.footer-bottom a:hover { color: var(--primary); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 58px; height: 58px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: var(--t); animation: pulse-wa 2s infinite; }
.whatsapp-float:hover { transform: scale(1.12); }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ── CTA SECTION ── */
.cta-section { background: linear-gradient(135deg, var(--dark2) 0%, #0F3460 100%); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: url('img/equipo.png') center/cover no-repeat; opacity: .07; }
.cta-section-inner { position: relative; z-index: 2; }
.cta-section h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.cta-section p  { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.cta-actions    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(26,26,46,.97); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85); z-index: 9998; padding: 18px 0;
  border-top: 3px solid var(--primary);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong { font-size: .93rem; font-weight: 700; color: var(--white); display: block; margin-bottom: 5px; }
.cookie-text p { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.55; margin: 0; }
.cookie-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }
.btn-cookie { border-radius: 50px; padding: 9px 18px; font-weight: 600; font-size: .83rem; cursor: pointer; border: 2px solid transparent; transition: background .2s, border-color .2s, color .2s; font-family: inherit; }
.btn-cookie-accept { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-cookie-accept:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-cookie-reject { background: transparent; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.35); }
.btn-cookie-reject:hover { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-cookie-customize { background: none; border: none; color: rgba(255,255,255,.5); font-size: .8rem; padding: 9px 10px; text-decoration: underline; cursor: pointer; }
.btn-cookie-customize:hover { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   MENÚ MÓVIL: solo clases CSS, nunca inline styles
══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --topbar-h: 44px; }

  /* Top bar */
  .top-bar-left .top-bar-item:not(:first-child),
  .top-bar-sep { display: none; }
  .top-bar-right .top-bar-item { display: none; }
  .top-bar-badge { font-size: .68rem; padding: 3px 8px; }

  /* Header */
  #header { top: var(--topbar-h); }

  /* Hamburger */
  .hamburger { display: flex; }

  /* Nav links y CTA ocultos por defecto */
  .nav-links { display: none; }
  .nav-cta   { display: none; }

  /* Menú abierto — ocupa todo el ancho bajo el header */
  #header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-top: 2px solid var(--primary);
    padding: 0 0 8px;
    box-shadow: 0 12px 32px rgba(26,26,46,.15);
    gap: 0;
    z-index: 1999;
  }
  #header.nav-open .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  #header.nav-open .nav-links > li:last-child { border-bottom: none; }
  #header.nav-open .nav-links a {
    display: flex;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--dark);
  }
  #header.nav-open .nav-links a:hover { color: var(--primary); background: var(--primary-l); }

  #header.nav-open .nav-cta {
    display: block;
    padding: 12px 16px 4px;
  }
  #header.nav-open .nav-cta .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }

  /* Dropdown móvil: accordion */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0;
    background: var(--light);
    padding: 0;
    visibility: visible !important;
    pointer-events: none;
    transition: opacity .2s ease, max-height .35s ease, padding .2s;
    min-width: unset;
    width: 100%;
  }
  .nav-dropdown.open .dropdown-menu {
    opacity: 1;
    max-height: 600px;
    padding: 4px 0 8px;
    pointer-events: auto;
  }
  .nav-dropdown-toggle {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 14px 20px !important;
  }
  .dropdown-menu li a {
    padding: 10px 32px;
    font-size: .88rem;
    color: var(--mid);
  }

  /* Secciones */
  .section    { padding: 60px 0; }
  .section-sm { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-bar-inner { gap: 16px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cookie-actions { width: 100%; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .trust-bar-inner { flex-direction: column; gap: 10px; align-items: flex-start; padding: 0 16px; }
  .trust-item { font-size: .82rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }
  .page-hero { padding: 130px 0 60px; }
  .page-hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; font-size: 1.4rem; }
}
