    /* ===== RESET & BASE ===== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: Palatino,Palatino Linotype,Palatino LT STD,Book Antiqua,Georgia,serif;
      font-weight: 0;
      color: #444;
      background: #fff;
      overflow-x: hidden;
    }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }
    img { max-width: 100%; display: block; }

    /* ===== CSS VARIABLES ===== */
    :root {
      --primary: #006177;
      --primary-dark: #1e4e78;
      --accent: #c0a060;
      --light-bg: #f7f4e5;
      --dark-overlay: rgba(0,0,0,0.55);
      --nav-height: 100px;
      --transition: 0.3s ease;
    }

    /* ===== PAGE LOADER ===== */
    #page-loader {
      position: fixed;
      inset: 0;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }
    #page-loader.hidden { opacity: 0; pointer-events: none; }
    #page-loader img { width: 160px; animation: pulse 1.5s infinite; }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

    /* ===== BACKGROUND SLIDESHOW ===== */
    #backgrounds {
      position: fixed;
      inset: 0;
      z-index: -2;
    }
    .bg-slide {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      opacity: 0;
      transition: opacity 1.5s ease;
    }
    .bg-slide.active { opacity: 1; }
    #color-overlay {
      position: fixed;
      inset: 0;
      z-index: -1;
    }

    /* ===== NAVBAR ===== */
    #main-nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 1000;
      background: #f7f3e3;
      backdrop-filter: blur(4px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      height: var(--nav-height);
    }
    #main-nav .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1; /* Permite que el header use el espacio necesario */
    }
    .navbar-brand img { width: 180px; }
    .navbar-toggle {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 8px;
    }
    .navbar-toggle .icon-bar {
      display: block;
      width: 25px;
      height: 2px;
      background: #006177;
      transition: var(--transition);
    }
    #site-nav ul {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    #site-nav ul li a {
      color: #777;
      font-size: 16px;
      font-weight: 100;
      letter-spacing: 0.5px;
      padding: 8px 14px;
      position: relative;
      color: #777;
      text-decoration: none;
      padding: 8px 14px;
      transition: color 0.3s ease;
    }
    #site-nav ul li a::after {
        content: '';
        position: absolute;
        left: 10%;
        top: 50%;
        width: 80%;
        height: 1px;
        background-color: var(--primary);
        transform: rotate(-25deg) scaleX(0);
        transform-origin: center; 
        
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    /* Efecto al pasar el mouse */
    #site-nav ul li a:hover::after,
    #site-nav ul li a.active::after {
        transform: rotate(-25deg) scaleX(1);
    }
    
    #site-nav ul li a:hover {
        background: transparent; /* Eliminamos el fondo verde */
        color: var(--primary); /* Cambiamos solo el color del texto si gustas */
    }

    @media (max-width: 768px) {

    
        #site-nav {
        display: none; 
        position: absolute;
        top: var(--nav-height); /* Se pone justo debajo del nav */
        left: 0;
        right: 0;
        background: #f7f3e3;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        }
        
        .navbar-header {
            width: 100%; /* El header ocupa todo el ancho para mandar el botón al extremo */
        }
        #site-nav ul {
            flex-direction: column;
            gap: 15px;
            width: 100%;
            text-align: center;
        }
    
        /* Clase que activaremos con JS */
        #site-nav.open {
            display: flex;
        }
    }

    /* ===== CONTAINER ===== */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* ===== HEADER / HERO ===== */
    #home {
      min-height: 90vh;
      display: flex;
      align-items: center;
      padding-top: var(--nav-height);
    }
    .message-box {
      text-align: center;
      padding: 0px 0 300px 0;
    }
    .first-line {
      font-size: 14px;
      color: rgba(255,255,255,0.7);
      text-transform: uppercase;
      letter-spacing: 4px;
      margin-bottom: 20px;
    }
    .home-slider {
      overflow: hidden;
      height: 90px;
      position: relative;
    }
    .home-slider .slides {
      display: flex;
      flex-direction: column;
      transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
    }
    .home-slider .slides li {
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .home-slider .slides li p {
      font-size: clamp(42px, 8vw, 80px);
      color: #fff;
      letter-spacing: 6px;
      text-transform: uppercase;
      text-shadow: 3px 2px rgba(0, 0, 0, 0.7);
    }

    @media (max-width: 768px) {
        .message-box {
            text-align: center;
            padding: 0px 0 100px 0;
          }
    }

    /* ===== SECTIONS COMMON ===== */
    section { padding: 80px 0; }
    .padding-bottom { padding-bottom: 80px; }
    .bg-light { background: var(--light-bg); }
    .bg-transparent { background: transparent; }
    .section-header { text-align: center; }
    .section-title {
        background: #f7f4e5;
        padding: 0 40px;
        top: -28px;
        font-size: 42px;
        font-weight: 800;
        color: #7c7c7c;
        text-transform: uppercase;
        position: relative;
        display: inline-block;
        padding-bottom: 16px;
    }
    .section-title::after {
      content: '';
      position: absolute;
      bottom: 0; left: 50%; transform: translateX(-50%);
      width: 60px; height: 2px;
      
    }
    .section-centrar { text-align: center; }

    /* ===== FIRMA SECTION ===== */
    #firma .row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }
    @media(min-width: 768px) {
      #firma .main-grid {
        display: grid;
        grid-template-columns: 5fr 7fr;
        gap: 50px;
        align-items: start;
      }
    }
    .sub_titulo, .sub_titulo2 {
      font-size: 25px;
      font-weight: 100;
      color: var(--primary);
      text-transform: uppercase;
      margin-bottom: 10px;
      text-align: center;
    }
    .item { margin-bottom: 30px; }
    .section-description {
      font-size: 15px;
      line-height: 1.8;
      color: #555;
    }
    .lead { font-size: 20px;
        line-height: 28px;
        font-weight: 100;
        letter-spacing: 0.02em;
        text-align: center; }
    .lead1 { font-size: 20px; line-height: 25px; font-weight: 100;
        letter-spacing: 0.02em; color: #555; text-align: center; }

    /* ===== CTA SECTION ===== */
    .cta {
        background: transparent;
        padding: 80px 0 60px;
        border-top: 60px solid rgba(255, 255, 255, 0.3);
        border-bottom: 60px solid rgba(255, 255, 255, 0.3);
        color: #fff;
    }
    .cta .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }
    .cta-message p {
      font-size: 22px;
      color: #fff;
      font-weight: 300;
      text-shadow: 1px 1px rgba(0, 0, 0, 0.7);
    }
    .cta-message p strong { font-weight: 700; text-shadow: 1px 1px rgba(0, 0, 0, 0.7); }
    .btn-theme {
        margin: 0;
        background: transparent;
        border: 3px solid #fff;
        border-radius: 5px;
        font-size: 21px;
        letter-spacing: 0.02em;
        padding: 15px 20px;
        text-decoration: none;
        transition: all .2s ease-out;
    }
    .btn-theme:hover {
      opacity: 1;
      background: #fff;
      color: #006177;
    }
    .btn-theme .fab { font-size: 21px; }

    /* ===== PORTFOLIO / SERVICIOS ===== */
    #portafolio { padding: 0; }
    #portafolio .bg-light { padding: 50px 0 0px; }
    #portafolio .padding-bottom {}
    #projects-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr); 
      grid-template-rows: repeat(3, auto); 
      gap: 15px; /* Un poco más de espacio suele verse mejor en lo legal */
      margin-top: 30px;
      width: 100%;
  }
  
  /* IMPORTANTE: Ajuste para móviles */
  @media (max-width: 768px) {
      #projects-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 30px;
      }
  }
    .project-item {
      position: relative;
      overflow: hidden;
      /* "Delgados": Un ratio de 3 a 1 los hace ver como barras horizontales */
      aspect-ratio: 5/1; 
      background: #ffffff; /* Todos blancos */
      cursor: pointer;
      border: 1px solid #e0e0e0; /* Un borde sutil para que se vean sobre fondo crema */
      transition: all 0.4s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .project-item::before {
      content: '';
      position: absolute;
      inset: 0;
      background: #ffffff; /* Fondo blanco */
      opacity: 1;
      transition: opacity 0.4s;
    }

    
    .project-item a {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;
    }
    .project-item .details {
      text-align: center;
      padding: 20px;
    }
    .project-title {
      font-size: 18px;
      color: #7c7c7c;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    /* La barra en el margen inferior (empieza invisible) */
.project-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px; /* Grosor de la barra */
  background-color: var(--primary); /* Tu color azul/verde */
  transform: scaleX(0); /* Empieza sin ancho */
  transition: transform 0.3s ease;
  transform-origin: center;
}

/* --- EFECTO HOVER --- */
.project-item:hover {
  border-color: #ddd;
}

/* Cambia el color de las letras al hacer hover */
.project-item:hover .project-info h3,
.project-item:hover .project-title {
  color: var(--primary); /* Cambia al color de tu marca */
}

/* Aparece la barra inferior */
.project-item:hover::after {
  transform: scaleX(1);
}



/* ===== MODAL MEJORADO CON BACKGROUND DINÁMICO ===== */
.service-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-modal.open {
  display: flex;
  opacity: 1;
}

.service-modal-inner {
  background: rgba(255, 255, 255, 0.95);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.service-modal.open .service-modal-inner {
  transform: scale(1);
}

/* Header con fondo de imágenes */
.service-modal-header {
  position: relative;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  min-height: 110px;
}

/* Fondo de imágenes del header */
.modal-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.modal-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.modal-bg-slide.active {
  opacity: 1;
}

/* Overlay semitransparente para legibilidad */
.modal-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* Contenido del header (por encima del fondo) */
.modal-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.modal-logo {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
 
}

.modal-logo img {
  width: 100%;
  height: auto;
}

.service-modal-header h2 {
  flex: 1;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.close-modal {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

/* Body del modal con scroll */
.service-modal-body {
  padding: 30px;
  max-height: calc(85vh - 110px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.98);
}

/* Scroll personalizado */
.service-modal-body::-webkit-scrollbar {
  width: 6px;
}

.service-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.service-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.service-modal-body p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 24px;
}

.service-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.service-modal-body ul li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.service-modal-body ul li i {
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Formulario dentro del modal */
.modal-contact-form {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  margin-top: 20px;
}

.modal-contact-form h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-contact-form h4 i {
  font-size: 1.2rem;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-form-group {
  margin-bottom: 0;
}

.modal-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.modal-form-group input,
.modal-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 97, 119, 0.1);
}

.modal-form-group.full-width {
  grid-column: 1 / -1;
}

.modal-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.modal-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-alerta {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}

.modal-alerta.show {
  display: block;
}

.modal-alerta.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.modal-alerta.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .service-modal {
      padding: 10px;
  }
  
  .service-modal-inner {
      max-height: 90vh;
  }
  
  .service-modal-header {
      padding: 15px 20px;
      min-height: 90px;
  }
  
  .modal-logo {
      width: 150px;
      height: 80px;
  }
  
  .service-modal-header h2 {
      font-size: 2rem;
  }
  
  .service-modal-body {
      padding: 20px;
      max-height: calc(90vh - 90px);
  }
  
  .modal-form-grid {
      grid-template-columns: 1fr;
      gap: 12px;
  }
  
  .modal-contact-form {
      padding: 20px;
  }
}
    @media (max-width: 768px) {
      #projects-container {
          grid-template-columns: 1fr; /* Una sola columna en móvil */
      }
      .project-item {
          aspect-ratio: 8 / 1;
          
      }
  }

    /* ===== ABOUT / EQUIPO ===== */
    #about .row {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 40px;
      margin-top: 20px;
    }
    .member { text-align: center; }
    .img-wrapper {
      position: relative;
      width: 260px;
      height: 260px;
      margin: 0 auto 20px;
      border-radius: 50%;
      overflow: hidden;
    }
    .img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .member-title h3 {
      font-size: 24px;
      font-weight: 600;
      color: #777;
      margin-bottom: 4px;
    }
    .member-title p {
      font-size: 13px;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .details-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px; /* Un poco más de espacio entre el círculo y el texto */
      margin-top: 14px;
      background: var(--primary);
      color: #fff;
      font-size: 12px;
      padding: 7px 16px;
      border-radius: 25px; /* Lo hacemos más redondeado para que combine con el icono */
      cursor: pointer;
      transition: all 0.3s ease;
      text-decoration: none;
    }
    
    .member-details {
      background: #f9f9f9;
      border-left: 3px solid var(--primary);
      margin-top: 0; /* Quitamos el margen inicial para que no se vea el hueco */
      padding: 0 16px; /* Padding lateral siempre, pero vertical 0 */
      text-align: left;
      border-radius: 0 3px 3px 0;
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease, margin 0.4s ease;
    }
    
    .member-details.open {
      max-height: 500px; /* Suficiente para el texto */
      padding: 16px;    /* Aplicamos el padding vertical solo al abrir */
      margin-top: 16px; /* El margen solo aparece al abrir */
      opacity: 1;
    }
    /* ===== CONTACT ===== */
    #contact h3.primary {
      color: var(--primary);
      font-size: 40px;
      font-weight: 500;
      margin-bottom: 16px;
    }
    .address { margin-bottom: 30px; }
    .address li {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 8px 0;
      color: #555;
      font-size: 18px;
      border-bottom: 1px solid #eee;
    }
    .address li span { color: var(--primary); flex-shrink: 0; }
    .address li a { color: var(--primary); }
    .google-maps iframe {
      width: 100%;
      height: 350px;
      border: 0;
      border-radius: 4px;
    }

    /* Contact Form */
    .formulario-contacto { margin-top: 60px; }
    .formulario-contacto h3.primary { text-align: center; margin-bottom: 30px; font-size: 24px; }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media(max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
    .form-group {
      position: relative;
      margin-bottom: 20px;
    }
    .form-group label {
      display: block;
      font-size: 30px;
      font-weight: 500;
      color: #555;
      margin-bottom: 6px;
    }
    .form-group .controls { position: relative; }
    .form-group .controls i {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #aaa;
      font-size: 14px;
    }
    .form-group textarea + i { top: 18px; transform: none; }
    .form-control {
      width: 100%;
      padding: 12px 40px 12px 14px;
      border: 1px solid #ddd;
      border-radius: 3px;
      font-size: 14px;
      font-family: 'Roboto', sans-serif;
      color: #444;
      background: #fff;
      transition: var(--transition);
    }
    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(42,100,150,0.12);
    }
    textarea.form-control { resize: vertical; min-height: 120px; padding: 12px 40px 12px 14px; }
    .full-width { grid-column: 1 / -1; }
    .btn-block {
      width: 100%;
      padding: 15px;
      font-size: 15px;
      border: none;
      background: var(--primary);
      color: #fff;
      border-radius: 3px;
      cursor: pointer;
      transition: var(--transition);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: 'Roboto', sans-serif;
    }
    .btn-block:hover { background: var(--primary-dark); }
    #alerta {
      padding: 14px 16px;
      border-radius: 3px;
      margin-bottom: 20px;
      font-size: 14px;
      display: none;
    }
    #alerta.show { display: block; }
    #alerta.success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
    #alerta.error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

    /* ===== SOCIAL LINKS ===== */
    #social-links {
      padding: 50px 0;
      background: transparent;
      padding: 80px 0 60px;
    border-top: 60px solid rgba(255, 255, 255, 0.3);
    border-bottom: 60px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    }
    #social-links ul {
      display: flex;
      justify-content: center;
      gap: 100px;
    }
    #social-links ul li { text-align: center; }
    #social-links .icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      border: solid 5px;
      font-size: 40px;
      color: #fff;
      margin: 0 auto 12px;
      transition: var(--transition);
    }
    #social-links .icon:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px); }
    #social-links h4 { color: #fff; font-size: 13px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }

    /* ===== FOOTER ===== */
    #main-footer {
      background: #1a1a1a;
      color: #aaa;
      padding: 30px 0;
    }
    #main-footer .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 20px;
    }
    #main-footer p { font-size: 13px; line-height: 1.6; }
    #main-footer p a { color: var(--accent); }
    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }
    .footer-nav li a {
      font-size: 12px;
      color: #aaa;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 4px 10px;
      transition: var(--transition);
    }
    .footer-nav li a:hover { color: #fff; }
    .footer-nav li:not(:last-child) a::after { content: '|'; margin-left: 10px; opacity: 0.4; }

    /* ===== ANIMATIONS ===== */
    .fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .fade-up.visible { opacity: 1; transform: translateY(0); border-top: 1px solid #006177; }
    .fade-in { opacity: 0; transition: opacity 0.7s ease; }
    .fade-in.visible { opacity: 1; }
    .scale-in { opacity: 0; transform: scale(0.9); transition: opacity 0.5s ease, transform 0.5s ease; }
    .scale-in.visible { opacity: 1; transform: scale(1); }

    /* ===== RESPONSIVE ===== */
    @media(max-width: 768px) {
      .navbar-toggle { display: flex; }
      #site-nav {
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: #f7f3e3;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
      }
      #site-nav.open { max-height: 400px; }
      #site-nav ul { flex-direction: column; padding: 10px 0; gap: 0; }
      #site-nav ul li a { display: block; padding: 14px 20px; }
      .cta .row { flex-direction: column; text-align: center; }
      #main-footer .row { flex-direction: column; text-align: center; }
      .footer-nav { justify-content: center; }
    }
    @media(max-width: 480px) {
      .section-title { font-size: 26px; }
      .home-slider .slides li p { font-size: 36px; }
    }