/* =============================================
   CEA Construcciones SAS — Landing Page
   Colores extraídos del logo
   ============================================= */

:root {
  --blue-dark: #1a3a5c;
  --blue-mid: #2d5a87;
  --orange: #e8751a;
  --orange-light: #f0943a;
  --orange-dark: #c9630f;
  --grey: #6b7280;
  --grey-light: #9ca3af;
  --grey-bg: #f3f4f6;
  --white: #ffffff;
  --black: #111827;

  --font: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 58, 92, 0.15);
  --transition: 0.25s ease;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.text-accent {
  color: var(--orange);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 117, 26, 0.35);
}

.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);
}

.btn--full {
  width: 100%;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 58, 92, 0.06);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-dark);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--orange);
}

.nav__cta {
  background: var(--blue-dark);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
}

.nav__cta:hover {
  background: var(--blue-mid);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 92, 0.92) 0%,
    rgba(26, 58, 92, 0.75) 50%,
    rgba(26, 58, 92, 0.85) 100%
  );
}

/* Fallback when no video */
.hero__video-wrap:not(:has(video[src])) .hero__overlay,
.hero__video:not([src]),
.hero__video source:not([src]) {
  /* handled via JS class */
}

.hero--no-video .hero__video-wrap {
  background:
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 6rem;
  max-width: 720px;
  color: var(--white);
}

.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(232, 117, 26, 0.2);
  border: 1px solid rgba(232, 117, 26, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__lead {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__road {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--white) 0px,
    var(--white) 40px,
    transparent 40px,
    transparent 80px
  );
  opacity: 0.5;
  z-index: 3;
}

/* ---- Stats ---- */
.stats {
  background: var(--white);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
}

.stat span {
  font-size: 0.85rem;
  color: var(--grey);
  font-weight: 500;
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--blue-dark);
  color: var(--white);
}

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: var(--orange-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--grey);
  font-size: 1.05rem;
}

.section--dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about__text p {
  color: var(--grey);
  margin-bottom: 1rem;
}

.about__list {
  margin-top: 1.5rem;
}

.about__list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--blue-dark);
  font-weight: 500;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__card {
  background: var(--grey-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-left: 4px solid var(--blue-dark);
}

.about__card--accent {
  background: var(--blue-dark);
  color: var(--white);
  border-left-color: var(--orange);
}

.about__card--accent p {
  color: rgba(255, 255, 255, 0.75);
}

.about__card-icon {
  width: 48px;
  height: 48px;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.about__card--accent .about__card-icon {
  color: var(--orange-light);
}

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

.about__card p {
  font-size: 0.9rem;
  color: var(--grey);
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.service-card--featured {
  background: var(--white);
  color: var(--black);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-card--featured p,
.service-card--featured li {
  color: var(--grey);
}

.service-card__badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.service-card ul li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.service-card--featured ul li {
  color: var(--grey);
}

.service-card--featured ul li::before {
  color: var(--orange);
}

/* ---- Videos ---- */
.video-featured {
  margin-bottom: 2.5rem;
}

.video-featured__caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--grey);
  font-weight: 500;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue-dark);
  aspect-ratio: 16 / 9;
}

.video-wrapper--large {
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
}

.video-placeholder__content {
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.video-placeholder__content span {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
}

.video-placeholder__content small {
  display: block;
  margin-top: 0.5rem;
  opacity: 0.6;
  font-size: 0.85rem;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 8px 32px rgba(232, 117, 26, 0.4);
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-play-btn:hover {
  background: var(--orange-light);
  transform: scale(1.08);
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.video-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 0.85rem;
}

.video-card p {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 0.25rem;
}

.video-card .video-wrapper {
  aspect-ratio: 16 / 10;
}

.video-card .video-play-btn {
  width: 56px;
  height: 56px;
}

.video-card .video-play-btn svg {
  width: 24px;
  height: 24px;
}

/* ---- Projects ---- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card__image {
  height: 220px;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 1.5rem;
}

.project-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--grey);
}

/* ---- Contact ---- */
.section--contact {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0f2840 100%);
  color: var(--white);
}

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

.contact__info h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact__info > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color var(--transition);
}

.contact__item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--orange);
}

.contact__item:hover {
  color: var(--orange-light);
}

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--black);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}

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

/* ---- Footer ---- */
.footer {
  background: #0a1e30;
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  opacity: 0.9;
  filter: brightness(1.1);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--orange-light);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services__grid,
  .videos__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 70px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--grey-bg);
    width: 100%;
  }

  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .nav-toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__content {
    padding: 3rem 0 5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem;
  }

  .stat strong {
    font-size: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }
}
