@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --dark:       #2D3C42;
  --dark-deep:  #1E2A2F;
  --mid:        #4A6570;
  --bg:         #F2F5F6;
  --white:      #FFFFFF;
  --gold:       #B8952A;
  --gold-light: #D4AF52;
  --text:       #1C1C1C;
  --text-mid:   #4A4A4A;
  --text-light: #8A9BA2;
  --border:     #D8E0E3;
  --font-sans:  'Outfit', Verdana, sans-serif;
  --transition: 0.25s ease;
  --radius:     2px;
  --shadow:     0 2px 20px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.top-bar {
  background-color: var(--dark-deep);
  color: var(--text-light);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  padding: 8px 0;
}

.top-bar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.top-bar a {
  color: var(--text-light);
  transition: color var(--transition);
}
.top-bar a:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  background-color: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 24px 0;
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img {
  width: 110px;
  height: auto;
}

.header-tagline {
  flex: 1;
  text-align: center;
}

.header-tagline p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-phones {
  text-align: right;
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

.header-phones strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.site-nav {
  background-color: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
}

.site-nav a {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--white);
  background-color: rgba(255,255,255,0.05);
}

.site-nav a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ══════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════ */
.page-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 32px 72px;
}

/* ══════════════════════════════════════════
   SECTION TITLE
══════════════════════════════════════════ */
.section-title {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.title-rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 32px;
}

.page-content p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 18px;
  text-align: justify;
}

.page-content strong {
  color: var(--text);
}

/* ══════════════════════════════════════════
   HERO (INDEX)
══════════════════════════════════════════ */
.hero-banner {
  background-color: var(--dark);
  padding: 18px 0 0;
  margin-bottom: 0;
}

.hero-label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  padding: 20px 32px 16px;
}

.hero-animation {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 942 / 350;
}

.hero-animation iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════
   TWO-COLUMN (RESEÑA)
══════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.two-col .col-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 36px;
  margin-bottom: 10px;
}

/* ══════════════════════════════════════════
   PROFESSIONAL CARD
══════════════════════════════════════════ */
.professional-intro {
  margin-bottom: 40px;
}

.professional-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.professional-card img {
  width: 100%;
  border-radius: var(--radius);
}

.bio-name {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.bio-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.bio-detail {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
}

.bio-detail strong {
  color: var(--dark);
  font-weight: 600;
}

.bio-detail a {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.bio-detail a:hover { border-bottom-color: var(--gold); }

/* ══════════════════════════════════════════
   ÁREAS
══════════════════════════════════════════ */
.areas-intro {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  border-left: 4px solid var(--gold);
  padding: 18px 24px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  font-size: 13.5px;
  line-height: 1.7;
}

.area-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.area-item:last-child { border-bottom: none; }

.area-number {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.area-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.area-text {
  color: var(--text-mid);
  font-size: 13.5px;
  line-height: 1.85;
  text-align: justify;
}

/* ══════════════════════════════════════════
   NOTICIAS
══════════════════════════════════════════ */
.news-banner {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news-empty {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 14px;
}

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contact-map {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

/* Form */
.contact-form-title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-form-rule {
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 28px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-row label span { color: var(--gold); margin-left: 3px; }

.form-row input,
.form-row textarea {
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(74,101,112,0.12);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.form-submit {
  margin-top: 8px;
}

.btn-submit {
  display: inline-block;
  padding: 12px 36px;
  background-color: var(--dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background-color: var(--gold);
  transform: translateY(-1px);
}

/* Contact info panel */
.contact-info-panel {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  padding: 32px 28px;
  font-size: 13.5px;
  line-height: 1.9;
}

.contact-info-panel h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.info-divider {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin: 12px 0 20px;
}

.contact-info-panel a {
  color: var(--gold-light);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.contact-info-panel a:hover { border-bottom-color: var(--gold-light); }

.info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 18px;
  margin-bottom: 2px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background-color: var(--dark-deep);
  color: rgba(255,255,255,0.55);
  padding: 40px 0 28px;
  font-size: 12.5px;
  line-height: 1.9;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand img {
  width: 80px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.footer-contact a {
  color: var(--gold-light);
}

.footer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: 1060px;
  margin: 28px auto 0;
  padding: 18px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ══════════════════════════════════════════
   HAMBURGER BUTTON
══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 860px) {
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .professional-card {
    grid-template-columns: 1fr;
  }

  .professional-card img {
    max-width: 220px;
  }

  .header-tagline { display: none; }


  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  /* Ocultar top bar */
  .top-bar { display: none; }

  /* Hamburger visible */
  .nav-toggle { display: flex; }

  /* Nav colapsado por defecto */
  .nav-inner {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 0;
  }

  .nav-inner.open {
    max-height: 400px;
    padding-bottom: 8px;
  }

  .site-nav a {
    padding: 13px 20px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-left: none;
  }

  .site-nav a.active {
    border-bottom-color: rgba(255,255,255,0.06);
    border-left: 3px solid var(--gold);
  }

  .page-wrapper { padding: 32px 20px 56px; }
  .header-inner { padding: 0 20px; }
  .top-bar-inner { padding: 0 20px; }
  .section-title { font-size: 22px; }
}
