:root {
  /* Paleta basada en el logo de Sosa & Asociados */
  --primary-color: #0b1d2e;          /* Azul muy oscuro (logo) */
  --primary-color-light: #1f395e;    /* Azul más claro para hover o fondos secundarios */
  --primary-color-dark: #0b162c;     /* Azul aún más oscuro para contrastes */
  --secondary-color: #c5b783;        /* Dorado */
  --secondary-color-light: #cfb383;  /* Dorado claro para hover suave */
  --secondary-color-dark: #9c7e48;   /* Dorado oscuro para hover marcado */
  --light-color: #F5F5F5;            /* Fondo general claro */
  --dark-color: #333333;             /* Texto oscuro en secciones claras */
  --gray-color: #e0e0e0;             /* Divisores o fondos muy suaves */
  --text-color: #333333;             /* Color base de párrafos y textos en fondo claro */
  --text-on-dark: #FFFFFF;           /* Texto sobre fondos oscuros */
  --border-radius: 5px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  /* Variables heredadas o de uso general */
  --headerColor: #132544;
  --bodyTextColorWhite: #FFFFFF;
  --primary: #132544;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--light-color); /* Fondo claro en todo el sitio */
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  color: var(--primary-color); /* Títulos en azul oscuro */
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color); /* Links en azul oscuro */
  transition: var(--transition);
}
a:hover {
  color: var(--secondary-color); /* Hover dorado */
}


ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
html {
  scroll-behavior: smooth;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.btn-primary:hover {
  background-color: var(--secondary-color-dark);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
}

.btn-whatsapp i {
  font-size: 1.2rem;
}


.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.section-decoration span {
  height: 1px;
  width: 50px;
  background-color: var(--secondary-color);
}

.section-decoration i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin: 0 15px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.logo-preloader {
  margin-bottom: 30px;
}

.logo-preloader img {
  width: 150px;
  height: auto;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-bar span {
  position: absolute;
  left: -100%;
  height: 100%;
  width: 100%;
  background-color: var(--secondary-color);
  animation: loading 1.5s ease infinite;
}

@keyframes loading {
  0% {
      left: -100%;
  }
  100% {
      left: 100%;
  }
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ===== HEADER / NAVIGATION ===== */
#cs-navigation {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 80rem;
  height: 8rem;
  box-sizing: border-box;
  padding: clamp(1rem, 2vw, 2rem);
  background: transparent;
  border-radius: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    top 0.3s ease,
    width 0.3s ease,
    max-width 0.3s ease,
    padding 0.3s ease,
    border-radius 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

#cs-navigation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 48, 64, 0.85);
  box-shadow: rgba(0,0,0,0.2) 0 8px 24px;
  border-radius: inherit;
  transition: transform 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
  z-index: -1;
}

body.scroll #cs-navigation::before {
  background: rgba(32, 48, 64, 0.95);
}

body.scroll #cs-navigation {
  top: 0;
  width: 100%;
  max-width: 100%;
  padding: clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(10px);
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contenedor interno: distribución equilibrada */
.cs-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

/* Logo a la izquierda */
.cs-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 1002;
}

.cs-logo img {
  display: block;
  max-height: 7rem;
  width: auto;
  object-fit: contain;
  transition: max-height 0.3s ease;
}

/* Ajuste del logo cuando hay scroll */
body.scroll .cs-logo img {
  max-height: 6rem;
}

/* Toggle hamburguesa */
.cs-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1003;
  padding: 0.5rem;
  position: relative;
  flex-shrink: 0;
}

.cs-toggle .cs-box {
  width: 24px;
  height: 18px;
  position: relative;
}

.cs-toggle .cs-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.cs-line1 { top: 0; }
.cs-line2 { top: 8px; }
.cs-line3 { bottom: 0; }

/* Animación hamburguesa → X */
.cs-toggle.cs-active .cs-line1 { 
  transform: translateY(8px) rotate(45deg); 
}
.cs-toggle.cs-active .cs-line2 { 
  opacity: 0; 
}
.cs-toggle.cs-active .cs-line3 { 
  transform: translateY(-8px) rotate(-45deg); 
}

/* Centro de la nav (enlaces) - PERFECTAMENTE CENTRADO EN DESKTOP */
.cs-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  z-index: 1;
}

/* Lista de enlaces en desktop */
.cs-ul-wrapper {
  display: flex;
}

.cs-ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-li {
  margin: 0;
  padding: 0;
}

.cs-li-link {
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cs-li-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary, #007bff);
  transition: width 0.3s ease;
}

.cs-li-link:hover::after,
.cs-li-link.cs-active::after {
  width: 100%;
}

/* ===================== CONTACT GROUP EN NAVBAR ===================== */
.cs-contact-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  z-index: 1002;
}

.cs-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.cs-phone:hover {
  opacity: 0.8;
}

.cs-phone-icon {
  display: block;
  width: 1.25rem;
  height: auto;
  filter: brightness(0) invert(1);
}

.cs-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cs-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cs-social-icon {
  display: block;
  width: 1rem;
  height: auto;
  filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE MOBILE - VERSIÓN CORREGIDA ===== */
@media (max-width: 768px) {
  /* Ajustes del header en móvil */
  #cs-navigation {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: auto;
    min-height: 4rem;
    padding: 1rem;
  }
  
  #cs-navigation::before {
    border-radius: 0;
  }

  /* Contenedor principal en móvil */
  .cs-container {
    justify-content: space-between;
    align-items: center;
  }

  /* Logo más pequeño en móvil */
  .cs-logo img {
    max-height: 3rem;
  }
  
  body.scroll .cs-logo img {
    max-height: 2.5rem;
  }

  /* MOSTRAR TOGGLE HAMBURGUESA EN MÓVIL */
  .cs-toggle {
    display: block !important;
  }

  /* NAVEGACIÓN MÓVIL - OVERLAY COMPLETO */
  .cs-nav {
    /* RESETEAR POSICIONAMIENTO DE DESKTOP */
    position: static;
    left: auto;
    top: auto;
    transform: none;
    
    /* OCULTO POR DEFECTO */
    display: none;
    width: 100%;
    height: auto;
    background: transparent;
    z-index: 1001;
  }

  /* OVERLAY COMPLETO CUANDO ESTÁ ACTIVO */
  #cs-navigation.cs-active .cs-nav,
  body.cs-open .cs-nav {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(32, 48, 64, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    
    /* CENTRADO */
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* WRAPPER Y LISTA DE NAVEGACIÓN */
  .cs-ul-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 0 2rem;
    margin: 0 auto;
  }

  .cs-ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .cs-li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cs-li:last-child {
    border-bottom: none;
  }

  .cs-li-link {
    display: block;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    color: #fff;
  }

  .cs-li-link::after {
    display: none;
  }

  /* EFECTOS HOVER EN MÓVIL */
  .cs-li-link:hover {
    color: var(--primary, #007bff);
    background: rgba(255, 255, 255, 0.05);
  }

  /* OCULTAR CONTACT GROUP EN MÓVIL */
  .cs-contact-group {
    display: none;
  }

  /* Prevenir scroll cuando menú está abierto */
  body.cs-open {
    overflow: hidden;
  }
}

/* ===== JAVASCRIPT PARA FUNCIONALIDAD ===== */
/* Agrega este JavaScript a tu página: */

/*
document.addEventListener('DOMContentLoaded', function() {
  const navigation = document.getElementById('cs-navigation');
  const toggle = document.querySelector('.cs-toggle');
  const body = document.body;
  
  // Toggle del menú móvil
  toggle.addEventListener('click', function() {
    this.classList.toggle('cs-active');
    navigation.classList.toggle('cs-active');
    body.classList.toggle('cs-open');
  });
  
  // Cerrar menú al hacer click en un enlace
  const navLinks = document.querySelectorAll('.cs-li-link');
  navLinks.forEach(link => {
    link.addEventListener('click', () => {
      toggle.classList.remove('cs-active');
      navigation.classList.remove('cs-active');
      body.classList.remove('cs-open');
    });
  });
  
  // Efecto scroll
  window.addEventListener('scroll', function() {
    if (window.scrollY > 100) {
      body.classList.add('scroll');
    } else {
      body.classList.remove('scroll');
    }
  });
});
*/

/* Ajustes para tablets pequeños */
@media (max-width: 768px) and (min-width: 480px) {
  .cs-logo img {
    max-height: 4rem;
  }
  
  body.scroll .cs-logo img {
    max-height: 3.5rem;
  }
}
/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-on-dark); /* texto en blanco sobre fondo oscuro */
  background-color: var(--primary-color);
  overflow: hidden;
  /* Reemplaza con la ruta de la imagen de Nadia Sosa */
  background-image: url('assets/img/abogado-yañez.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  padding-top: 3rem;
  border-radius: 0 0 50px 50px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Degradado usando el azul oscuro del logo en semitransparente */
  background: linear-gradient(
    135deg,
    rgba(19, 37, 68, 0.85) 0%,
    rgba(19, 37, 68, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 0 50px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-top: 150px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-on-dark);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .slogan {
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  color: var(--secondary-color);
  font-family: 'Playfair Display', serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.hero-buttons .btn {
  padding: 15px 35px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* .btn-primary y .btn-secondary ya deben usar las variables definidas */
}

.hero-bottom {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px 0;
  backdrop-filter: blur(5px);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.hero-feature {
  padding: 20px;
  transition: transform 0.3s ease;
}

.hero-feature:hover {
  transform: translateY(-5px);
}

.hero-feature i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.hero-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}

.hero-feature p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Controles flecha */
.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border: none;
  color: var(--text-on-dark);
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 3;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.hero-control:hover {
  background: rgba(0,0,0,0.5);
}
.hero-control.prev {
  left: 20px;
}
.hero-control.next {
  right: 20px;
}

/* Para animar el cambio de fondo: usamos pseudo-elemento que hace fade */
.hero {
  position: relative; /* ya lo tienes */
  overflow: hidden;
  /* background inicial definido por JS */
  transition: background-image 0.5s ease-in-out; /* fallback suave */
}
/* Alternativa: si quieres crossfade, se usaría un pseudo-elemento, pero para simplicidad bastará transicionar la opacidad de un overlay adicional o transition sobre background-position con dos imágenes. Aquí usamos transición simple. */

/* Asegúrate de que overlay y contenido estén por encima */
.hero-overlay {
  z-index: 1;
}
.hero-content, .hero-bottom, .hero-control {
  z-index: 2;
}



/* Si deseas suavizar el fade, podrías crear un pseudo-elemento :before que cambie opacidad; opcional */



/* ================= About Section ================= */
.about {
  padding: 80px 0;
  background-color: var(--light-color); /* fondo claro */
}

.about .container {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.section-decoration {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-decoration span {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--secondary-color);
}
.section-decoration i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* Contenedor flex texto + imagen */
.about-container {
  display: flex;
  align-items: stretch;    /* imagen igual altura que el texto */
  gap: 40px;
  flex-wrap: wrap;
}

/* Bloque de texto */
.about-content {
  flex: 1 1 350px;
}
.about-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
}
.about-content p {
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* Párrafo destacado */
.about-content .highlight {
  border-left: 4px solid var(--secondary-color);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(197,183,131, 0.05);
  color: var(--primary-color-dark);
  border-radius: 0.25rem;
}

/* Características en grid */
.about-features {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 30px;
}
.about-feature {
  text-align: center;
}
.feat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feat-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}
.feat-text h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color-dark);
}
.feat-text p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.4;
}

/* Bloque de imagen */
.about-image {
  position: relative;       /* necesario para badge */
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-image-main {
  flex: 1;
  width: 100%;
  height: 100%;            /* llena la altura del contenedor */
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}
.about-image-main img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-image-main:hover img {
  transform: scale(1.03);
}

/* Badge de experiencia: esquina inferior derecha */
.about-image-badge {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
}
.about-image-badge .badge-number {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.about-image-badge .badge-text {
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.2;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .about-content {
    text-align: center;
  }
  .about-content .highlight {
    margin: 0 auto 1.5rem;
    max-width: 500px;
  }
  .about-image-main {
    height: auto;           /* para que no se estire demasiado */
  }
}

@media (max-width: 576px) {
  .about-content h2 {
    font-size: 1.5rem;
  }
  .about-content p,
  .feat-text p {
    font-size: 0.9rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  .about-image-badge {
    display: none;          /* opcional: ocultar badge en móviles muy pequeños */
  }
}

/* ===== CTA Section ===== */
/* ===== CTA genérico con efecto giratorio y texto blanco ===== */
.cta {
  position: relative;
  padding: 80px 0;
  /* degradado semitransparente + fondo dinámico */
  background:
    linear-gradient(rgba(11,29,46,0.7), rgba(11,29,46,0.7)),
    var(--cta-bg) no-repeat center center / cover;
  color: #fff;                   /* texto blanco */
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(197,183,131,0.05);
  transform-origin: center;
  animation: rotate 30s linear infinite;
  z-index: 1;                    /* debajo del contenido */
}

.cta-container {
  position: relative;
  z-index: 2;                    /* por encima del ::before */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-content {
  flex: 2;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #fff;                   /* aseguro blanco */
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);  /* blanco semitransparente */
}

.cta-button {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: right;
}

.cta-button .btn-whatsapp {
  background-color: #25D366;
  color: #fff;
}

/* Keyframes para la animación giratoria */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .cta { padding: clamp(3rem,8vw,6rem) 1rem; }
  .cta-content h2 { font-size: clamp(1.5rem,6vw,2.5rem); }
  .cta-content p  { font-size: clamp(0.9rem,4vw,1.2rem); }
}

@media (max-width: 480px) {
  .cta-content h2,
  .cta-content p,
  .cta-button .btn-whatsapp {
    animation-duration: 0.8s;
    animation-delay: 0.2s;
  }
}




/* Divider con línea fina azul y balanza centrada */
.balance-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px 0;         /* aumentado para bajarlo un poco más */
  font-size: 1.2rem;      /* tamaño del icono */
  color: var(--primary-color);
}

.balance-divider::before,
.balance-divider::after {
  content: "";
  flex: 1;
  height: 2px;            /* grosor de la línea */
  background-color: currentColor;
  margin: 0 0.75em;       /* espacio entre la balanza y la línea */
}

/* Restaurar estilos para la sección de equipo en nosotros.html */
.team-section {
  padding: 80px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
   justify-items: center;
}

.team-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 350px;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-image {
  position: relative;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.team-info p {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background-color: #f5f5f5;
  border-radius: 50%;
  color: #666;
  transition: all 0.3s ease;
}

.team-social a:hover {
  background-color: var(--primary-color);
  color: #fff;
}


/* Services Section */
.services {
  padding: 100px 0;
  background-color: #f5f5f5; /* Cambiado a un fondo más claro */
}

.services .section-title,
.services .section-subtitle {
  color: var(--primary-color); /* Cambiado para mejor contraste */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  border-bottom: 4px solid var(--secondary-color); /* Añadido borde inferior */
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover .service-content h3,
.service-card:hover .service-content p,
.service-card:hover .service-link {
  color: white;
}

.service-card:hover .service-icon {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.service-icon {
  background-color: var(--primary-color);
  color: white;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: var(--transition);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-content p {
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 100px 0;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.why-choose-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.mvv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.mvv-card {
  background-color: #f5f5f5; /* Cambiado a un fondo más claro */
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 5px solid var(--secondary-color); /* Añadido borde superior */
}

.mvv-card:hover {
  transform: translateY(-10px);
  background-color: var(--primary-color); /* Cambia a verde al hacer hover */
}

.mvv-card:hover h3,
.mvv-card:hover p,
.mvv-card:hover ul li {
  color: #fff;
}

.mvv-card:hover .mvv-icon {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.mvv-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.mvv-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.mvv-card p {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.mvv-card ul {
  text-align: left;
  padding-left: 20px;
  list-style: disc;
}

.mvv-card ul li {
  margin-bottom: 10px;
  color: var(--text-color);
  transition: color 0.3s ease;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--primary-color);
}

.testimonials .section-title,
.testimonials .section-subtitle {
  color: #fff;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-item {
  min-width: 100%;
  padding: 0 15px;
}

.testimonial-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  position: relative;
  margin-bottom: 30px;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  width: 30px;
  height: 30px;
  background-color: white;
  transform: rotate(45deg);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.testimonial-quote {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 15px;
}

.testimonial-rating {
  margin-top: 15px;
  color: var(--secondary-color);
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.testimonial-author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 3px solid var(--secondary-color);
}

.testimonial-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #fff;
}

.testimonial-author-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.testimonial-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.testimonial-arrow:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color-dark);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--secondary-color);
  transform: scale(1.3);
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--light-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.faq-icon {
  color: var(--secondary-color);
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background-color: var(--primary-color);
}

.faq-item.active .faq-question h3 {
  color: white;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}


/* ================= Contact Section ================= */
.contact {
  padding: 100px 0;
  background-color: #f5f5f5;
}

.contact .section-subtitle,
.contact .section-title {
  color: var(--primary-color);
}

.contact .section-decoration span {
  background: var(--secondary-color);
}
.contact .section-decoration i {
  color: var(--secondary-color);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  border-right: 5px solid var(--secondary-color);
}

.form-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.form-header p {
  margin-bottom: 30px;
  color: var(--text-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-color);
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197,183,131,0.2);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-privacy input {
  margin-top: 5px;
}

.btn-primary {
  margin-top: 10px;
}

/* Información + Mapa */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--secondary-color);
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

/* Cambio principal: lista vertical en lugar de grid 2x2 */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-weight: 600;
}

.contact-text p,
.contact-text a {
  color: var(--text-color);
  line-height: 1.5;
  margin: 0;
}

.contact-text a {
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--secondary-color);
}

.contact-social {
  border-top: 1px solid #f0f0f0;
  padding-top: 25px;
}

.contact-social h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--light-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.contact-map {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 300px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-item {
    padding: 12px 0;
  }
  
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .contact {
    padding: 60px 0;
  }
  
  .contact-form,
  .contact-info {
    padding: 25px;
  }
  
  .contact-container {
    gap: 30px;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.footer-logo img {
  height: 140px;    /* aumentado para verse mejor */
  margin-right: 10px;
}

.footer-about p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-social {
  display: flex;
  gap: 15px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}
.footer-social a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-links ul,
.footer-services ul {
  list-style: none;
}
.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}
.footer-links ul li a,
.footer-services ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}
.footer-links ul li a:hover,
.footer-services ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}
/* Forzar texto blanco en contacto */
.footer-contact-item p,
.footer-contact-item a {
  color: #fff !important;
}
.footer-contact-icon {
  color: var(--secondary-color);
  font-size: 1.2rem;
  min-width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-bottom a {
  color: white;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  color: white;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-tooltip {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: white;
  color: var(--dark-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero h1 {
      font-size: 3rem;
  }
  
  .mvv-cards {
      grid-template-columns: 1fr;
      max-width: 600px;
      margin: 0 auto;
  }
}

@media (max-width: 992px) {
  .hero-content {
      padding: 80px 20px 40px;
  }
  
  .hero h1 {
      font-size: 2.5rem;
  margin-top: 100px;    }
  
  .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 15px;
  }
  
  .hero-buttons .btn {
      width: 100%;
      max-width: 300px;
  }
  
  .about-container {
      flex-direction: column;
  }
  
  .contact-container {
      grid-template-columns: 1fr;
  }
  
  .contact-details {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-features {
      grid-template-columns: 1fr;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .services-grid {
      grid-template-columns: 1fr;
  }
  
  .about-features {
      grid-template-columns: 1fr;
  }
  
  .form-row {
      grid-template-columns: 1fr;
  }
  
  .cta-container {
      flex-direction: column;
      text-align: center;
  }
  
  .cta-button {
      text-align: center;
  }
}

@media (max-width: 576px) {
  .hero h1 {
      font-size: 1.8rem;
  }
  
  .hero .slogan {
      font-size: 1.4rem;
  }
}



/* Estilos para el mensaje de carga */
.loading, .sent-message, .error-message {
  display: none;
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
}

.d-block {
  display: block;
}

.sent-message {
  color: green;
}

.error-message {
  color: red;
}
