/* ==========================================================================
   Coello Trejo & Asociados — Sistema de diseño
   ========================================================================== */

:root {
  /* Color */
  --maroon: #B42134;
  --maroon-dark: #8B1927;
  --near-black: #1D070D;
  --charcoal: #2B2A28;
  --body-text: #5A5652;
  --line: #E4E0DB;
  --bg: #FFFFFF;
  --bg-soft: #F6F4F1;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --gap: 2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------
   Eyebrow / section headers
   -------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.section-heading .rule {
  width: 1px;
  height: 40px;
  background: var(--line);
  margin: 0 auto;
}

.accent-bar {
  width: 48px;
  height: 4px;
  background: var(--maroon);
  margin-bottom: 1.4rem;
}

.section {
  padding: 5rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

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

.nav {
  display: flex;
  gap: 2.2rem;
}

.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--maroon);
  border-color: var(--maroon);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15,6,9,0.45) 0%, rgba(15,6,9,0.85) 100%),
              url('../img/header-columnas.jpg') center / cover no-repeat;
  background-color: var(--near-black);
}

.hero-inner {
  max-width: 680px;
}

.hero .eyebrow {
  color: #E7A6AF;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}

.hero p {
  color: #E8E2DD;
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.page-banner {
  background: linear-gradient(180deg, rgba(15,6,9,0.8) 0%, rgba(15,6,9,0.8) 100%),
              url('../img/header-columnas.jpg') center / cover no-repeat;
  background-color: var(--near-black);
  padding: 6.5rem 0 5rem;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin: 0;
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--maroon);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--maroon-dark);
  border-color: var(--maroon-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--maroon);
}

.link-arrow svg {
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------
   Areas de servicio — cards
   -------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg-soft);
  padding: 3rem 2.2rem;
  text-align: center;
}

.service-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.4rem;
  color: var(--maroon);
}

.service-card .icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.94rem;
  margin-bottom: 1.4rem;
}

/* Accordion detail sections on servicios.html */

.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 0;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item .icon {
  width: 44px;
  height: 44px;
  color: var(--maroon);
}

.accordion-item .icon svg {
  width: 100%;
  height: 100%;
}

.accordion-item summary .heading h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.accordion-item summary .heading p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--body-text);
}

.accordion-item summary .chevron {
  width: 22px;
  height: 22px;
  color: var(--maroon);
  transition: transform 0.25s ease;
  justify-self: end;
}

.accordion-item[open] summary .chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 0 2.4rem 4.6rem;
  max-width: 760px;
}

.accordion-body h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--maroon);
  font-weight: 600;
  margin: 0 0 1rem;
}

.accordion-body p {
  font-size: 0.96rem;
}

.accordion-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.accordion-body li {
  margin-bottom: 0.9rem;
  font-size: 0.96rem;
}

@media (max-width: 680px) {
  .accordion-item summary {
    grid-template-columns: 40px 1fr 20px;
    gap: 1rem;
  }
  .accordion-body {
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------
   Intro / about section
   -------------------------------------------------------------------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-media {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.intro-media.wide {
  aspect-ratio: 16/9;
}

.intro-media.tall {
  aspect-ratio: 4/5;
}

.intro-media::before {
  content: '';
  position: absolute;
  inset: -18px auto auto -18px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--maroon);
  z-index: -1;
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro h2 {
  font-size: 2rem;
}

/* --------------------------------------------------------------------
   Press room / Sala de Prensa
   -------------------------------------------------------------------- */

.press-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.press-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.8rem;
  align-items: center;
  text-decoration: none;
}

.press-card .thumb {
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}

.press-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.press-card:hover .thumb img {
  transform: scale(1.04);
}

.press-card .thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.92);
  background: rgba(15,6,9,0.15);
}

.press-card .thumb .play svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.press-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.press-card .tag {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
}

.press-empty {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
}

/* Press detail page (embedded video) */

.press-detail-video {
  aspect-ratio: 16/9;
  background: #000;
  margin-bottom: 2rem;
}

.press-detail-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 680px) {
  .press-card {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.1rem;
}

.contact-info-item .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--maroon);
  margin-top: 0.2rem;
}

.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: var(--charcoal);
  font-weight: 600;
}

.contact-info-item p {
  margin: 0;
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-soft);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: #2E7D4F;
}

.form-status[data-state="error"] {
  color: var(--maroon);
}

.map-embed {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  height: 320px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */

.mission-values {
  background: linear-gradient(180deg, rgba(15,6,9,0.55) 0%, rgba(15,6,9,0.72) 100%),
              url('../img/bg-valores.jpg') center / cover no-repeat;
  background-color: var(--near-black);
  color: #E8E2DD;
  padding: 4.5rem 0;
}

.mission-values-frame {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 3.5rem 3rem;
}

.mission-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mission-values-col {
  text-align: center;
}

.mission-values-col .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.2rem;
  color: var(--white);
}

.mission-values-col .icon img {
  width: 100%;
  height: 100%;
}

.mission-values-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.mission-values-col p {
  max-width: 480px;
  margin: 0 auto;
  color: #D9D0CA;
}

.mission-values-col ul li {
  margin-bottom: 0.6rem;
  color: #D9D0CA;
}

@media (max-width: 680px) {
  .mission-values-frame {
    padding: 2.5rem 1.5rem;
  }
  .mission-values-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.site-footer {
  background: var(--near-black);
  color: #C9BEB8;
  padding: 4.5rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
  font-weight: 600;
}

.footer-grid .logo img {
  height: 46px;
  margin-bottom: 1.2rem;
}

.footer-grid p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--maroon);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}

.footer-social a {
  width: 20px;
  height: 20px;
  color: #C9BEB8;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-social svg {
  width: 100%;
  height: 100%;
}

.footer-bottom {
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #8A7E78;
}

.footer-bottom a {
  color: #8A7E78;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .press-card {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.6rem;
  }
}

@media (max-width: 680px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-detail {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
