/* MEJORAS APLICADAS:
    1. Variables CSS organizadas
    2. Mejor contraste de colores
    3. Animaciones sutiles
    4. Mejor responsividad
    5. Galería de testimonios con navegación CORREGIDA
    6. Mejor jerarquía visual */
    
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --primary: #2a9d8f;
      --primary-light: #e9f5f3;
      --primary-dark: #21867a;
      --secondary: #264653;
      --bg: #f8fafc;
      --bg-alt: #f1f5f9;
      --text: #1e293b;
      --text-muted: #64748b;
      --card: #ffffff;
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --radius: 1rem;
      --radius-sm: 0.5rem;
      --whatsapp: #25D366;
      --transition: all 0.3s ease;
    }

    html { scroll-behavior: smooth; scroll-padding-top: 80px; }

    body {
      font-family: 'Source Sans 3', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      overflow-x: hidden;
    }

    h1, h2, h3, h4 { 
      font-family: 'Playfair Display', serif;
      line-height: 1.2;
      margin-bottom: 1rem;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    @media (max-width: 768px) {
      .container { padding: 0 1.5rem; }
    }

    /* ===== HEADER MEJORADO ===== */
    .header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid #e2e8f0;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      padding: 0.5rem 0;
    }
    
    .header .container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 70px;
    }
    
    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: var(--secondary);
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      font-size: 1.35rem;
      transition: var(--transition);
    }
    
    .logo:hover { color: var(--primary); }
    .logo-icon { width: 36px; height: 36px; fill: var(--primary); }
    
    .nav-desktop { display: flex; gap: 0.5rem; }
    .nav-desktop a {
      padding: 0.6rem 1rem;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      border-radius: var(--radius-sm);
      transition: var(--transition);
      position: relative;
    }
    
    .nav-desktop a:hover {
      color: var(--primary);
      background: var(--primary-light);
    }
    
    .nav-desktop a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      width: 0;
      height: 2px;
      background: var(--primary);
      transition: var(--transition);
      transform: translateX(-50%);
    }
    
    .nav-desktop a:hover::after { width: 70%; }
    
    .hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      z-index: 1002;
    }
    
    .hamburger span {
      display: block;
      width: 25px;
      height: 3px;
      background: var(--text);
      margin: 5px 0;
      transition: var(--transition);
      border-radius: 3px;
    }
    
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    
    /* MENU MÓVIL MEJORADO */
    .mobile-menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 320px;
      height: 100%;
      background: var(--card);
      z-index: 1001;
      padding: 5rem 2rem 2rem;
      transition: var(--transition);
      box-shadow: var(--shadow-lg);
      overflow-y: auto;
    }
    
    .mobile-menu.active { right: 0; }
    
    .mobile-menu a {
      display: block;
      padding: 1rem 0;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      border-bottom: 1px solid #e2e8f0;
      transition: var(--transition);
    }
    
    .mobile-menu a:hover {
      color: var(--primary);
      padding-left: 0.5rem;
    }
    
    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 1000;
      backdrop-filter: blur(3px);
    }
    
    .overlay.active { display: block; }
    
    /* ===== HERO MEJORADO ===== */
    .hero {
      position: relative;
      min-height: 90vh;
      display: flex;
      align-items: center;
      background: linear-gradient(135deg, var(--secondary) 0%, #2a5368 100%);
      overflow: hidden;
    }
    
    .hero-bg {
      position: absolute;
      inset: 0;
      opacity: 0.1;
      background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }
    
    .hero .container {
      position: relative;
      z-index: 2;
      padding: 4rem 2rem;
      max-width: 800px;
    }
    
    .hero h1 {
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.1;
      margin-bottom: 1.5rem;
      text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .hero p {
      font-size: 1.25rem;
      color: rgba(255,255,255,0.9);
      margin-bottom: 2.5rem;
      max-width: 600px;
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 2.5rem;
      background: var(--primary);
      color: white;
      font-size: 1.1rem;
      font-weight: 600;
      border: none;
      border-radius: var(--radius-sm);
      text-decoration: none;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: var(--shadow);
    }
    
    .btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: var(--shadow-lg);
    }
    
    .btn-secondary {
      background: transparent;
      border: 2px solid rgba(255,255,255,0.3);
      color: white;
    }
    
    .btn-secondary:hover {
      background: rgba(255,255,255,0.1);
      border-color: white;
    }
    
    .btn-group {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }
    
    @media (max-width: 640px) {
      .btn-group { flex-direction: column; }
      .btn { justify-content: center; }
    }
    
    /* ===== SECTIONS ===== */
    .section { padding: 6rem 0; }
    .section-alt { background: var(--bg-alt); }
    
    .section-title {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      text-align: center;
      margin-bottom: 1rem;
      color: var(--secondary);
    }
    
    .section-subtitle {
      text-align: center;
      color: var(--text-muted);
      max-width: 700px;
      margin: 0 auto 4rem;
      font-size: 1.125rem;
    }
    
    /* ===== ABOUT MEJORADO ===== */
    .about-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2.5rem;
      max-width: 1100px;
      margin: 0 auto;
    }
    
    .about-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 2.5rem;
      box-shadow: var(--shadow);
      transition: var(--transition);
      border-top: 4px solid var(--primary);
    }
    
    .about-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }
    
    .about-card-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    
    .icon-circle {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .icon-circle svg { 
      width: 28px; 
      height: 28px; 
      stroke: var(--primary); 
      fill: none; 
      stroke-width: 2; 
      stroke-linecap: round; 
      stroke-linejoin: round; 
    }
    
    /* ===== SERVICIOS MEJORADO ===== */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .service-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 2rem;
      text-align: center;
      box-shadow: var(--shadow);
      transition: var(--transition);
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    
    .service-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
    }
    
    .service-card .icon-circle { 
      margin-bottom: 1.5rem;
      transition: var(--transition);
    }
    
    .service-card:hover .icon-circle {
      background: var(--primary);
      transform: scale(1.1);
    }
    
    .service-card:hover .icon-circle svg { stroke: white; }
    
    .service-card h3 {
      font-family: 'Source Sans 3', sans-serif;
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      color: var(--secondary);
    }
    
    /* ===== PAQUETES MEJORADO ===== */
    .packages-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .package-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 2.5rem 2rem;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      position: relative;
      transition: var(--transition);
      border: 2px solid transparent;
    }
    
    .package-card:hover { transform: translateY(-5px); }
    .package-card.popular { border-color: var(--primary); background: linear-gradient(135deg, var(--card) 0%, var(--primary-light) 100%); }
    
    .package-badge {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--primary);
      color: #fff;
      font-size: 0.85rem;
      font-weight: 700;
      padding: 0.5rem 1.5rem;
      border-radius: 999px;
      letter-spacing: 0.5px;
    }
    
    .package-price {
      text-align: center;
      margin: 1.5rem 0;
    }
    
    .package-price .amount {
      font-size: 3rem;
      font-weight: 700;
      color: var(--secondary);
      line-height: 1;
    }
    
    .package-price .old-price {
      display: block;
      color: var(--text-muted);
      text-decoration: line-through;
      margin-top: 0.5rem;
    }
    
    .package-features {
      list-style: none;
      margin: 1.5rem 0;
      flex: 1;
    }
    
    .package-features li {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      margin-bottom: 1rem;
      padding-left: 0.5rem;
    }
    
    .package-features li::before {
      content: "✓";
      color: var(--primary);
      font-weight: bold;
      flex-shrink: 0;
      margin-top: 0.1rem;
    }
    
    /* ===== GALERÍA DE TESTIMONIOS CORREGIDA ===== */
    .testimonials {
      background: linear-gradient(135deg, var(--secondary) 0%, #1a365d 100%);
      color: white;
      position: relative;
      overflow: hidden;
    }
    
    .testimonials .section-title { color: white; }
    .testimonials .section-subtitle { color: rgba(255,255,255,0.8); }
    
    .testimonial-container {
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      padding: 0 3rem;
    }
    
    @media (max-width: 768px) {
      .testimonial-container { padding: 0 1rem; }
    }
    
    .testimonial-slider {
      overflow: hidden;
      position: relative;
      min-height: 400px;
    }
    
    .testimonial-track {
      display: flex;
      transition: transform 0.5s ease-in-out;
      width: 100%;
    }
    
    .testimonial-slide {
      min-width: 100%;
      width: 100%;
      flex-shrink: 0;
      padding: 0 1rem;
      opacity: 0;
      transition: opacity 0.5s ease;
      display: none;
    }
    
    .testimonial-slide.active {
      opacity: 1;
      display: block;
    }
    
    .testimonial-card {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(10px);
      border-radius: var(--radius);
      padding: 3rem;
      border: 1px solid rgba(255,255,255,0.1);
      max-width: 700px;
      margin: 0 auto;
      position: relative;
      animation: fadeIn 0.5s ease forwards;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .testimonial-text {
      font-style: italic;
      font-size: 1.2rem;
      line-height: 1.6;
      margin-bottom: 2rem;
      position: relative;
      padding-left: 2rem;
    }
    
    .testimonial-text::before {
      content: '"';
      font-size: 4rem;
      position: absolute;
      left: -0.5rem;
      top: -1.5rem;
      opacity: 0.3;
      font-family: 'Playfair Display', serif;
    }
    
    .testimonial-author {
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }
    
    .author-avatar {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--primary);
      background: rgba(255,255,255,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      font-weight: bold;
      color: white;
      flex-shrink: 0;
    }
    
    .author-info h4 {
      color: white;
      margin: 0 0 0.5rem 0;
      font-size: 1.3rem;
    }
    
    .author-info p {
      color: rgba(255,255,255,0.7);
      margin: 0;
      font-size: 1rem;
    }
    
    .testimonial-rating {
      margin-top: 0.5rem;
      color: #FFD700;
      font-size: 1.2rem;
    }
    
    .testimonial-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;
      margin-top: 3rem;
    }
    
    .testimonial-dots {
      display: flex;
      gap: 0.75rem;
      margin: 0 2rem;
    }
    
    .testimonial-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255,255,255,0.3);
      border: none;
      cursor: pointer;
      transition: var(--transition);
      padding: 0;
    }
    
    .testimonial-dot.active {
      background: var(--primary);
      transform: scale(1.2);
    }
    
    .testimonial-dot:hover {
      background: rgba(255,255,255,0.5);
    }
    
    .testimonial-arrow {
      background: rgba(255,255,255,0.1);
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
      color: white;
    }
    
    .testimonial-arrow:hover {
      background: var(--primary);
      transform: scale(1.1);
    }
    
    .testimonial-arrow svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      stroke-width: 2;
    }
    
    .testimonial-arrow.prev { order: 1; }
    .testimonial-dots { order: 2; }
    .testimonial-arrow.next { order: 3; }
    
    @media (max-width: 768px) {
      .testimonial-card {
        padding: 2rem;
      }
      
      .testimonial-text {
        font-size: 1.1rem;
        padding-left: 1.5rem;
      }
      
      .testimonial-text::before {
        font-size: 3rem;
        left: -0.25rem;
        top: -1rem;
      }
      
      .testimonial-nav {
        gap: 1rem;
      }
      
      .testimonial-arrow {
        width: 40px;
        height: 40px;
      }
      
      .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
      }
    }
    
    /* ===== UBICACIÓN MEJORADA ===== */
    .location-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      max-width: 1100px;
      margin: 0 auto;
      align-items: center;
    }
    
    @media (max-width: 992px) {
      .location-grid { grid-template-columns: 1fr; }
    }
    
    .map-wrapper {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      height: 400px;
    }
    
    .map-wrapper iframe {
      width: 100%;
      height: 100%;
      border: 0;
      filter: grayscale(20%);
    }
    
    .location-info { display: flex; flex-direction: column; gap: 2rem; }
    
    .location-item {
      display: flex;
      gap: 1.25rem;
      align-items: flex-start;
      padding: 1.5rem;
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      transition: var(--transition);
    }
    
    .location-item:hover {
      transform: translateX(5px);
      box-shadow: var(--shadow-lg);
    }
    
    /* ===== FOOTER MEJORADO ===== */
    .footer {
      background: var(--secondary);
      color: rgba(255,255,255,0.9);
      padding: 4rem 0 2rem;
    }
    
    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 3rem;
      margin-bottom: 3rem;
    }
    
    .footer-column h3 {
      color: white;
      font-size: 1.25rem;
      margin-bottom: 1.5rem;
      font-family: 'Source Sans 3', sans-serif;
    }
    
    .footer-links { list-style: none; }
    .footer-links li { margin-bottom: 0.75rem; }
    .footer-links a {
      color: rgba(255,255,255,0.7);
      text-decoration: none;
      transition: var(--transition);
    }
    
    .footer-links a:hover {
      color: white;
      padding-left: 0.5rem;
    }
    
    .social-links {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    
    .social-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: rgba(255,255,255,0.1);
      border-radius: 50%;
      color: white;
      text-decoration: none;
      transition: var(--transition);
    }
    
    .social-links a:hover {
      background: var(--primary);
      transform: translateY(-3px);
    }
    
    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.6);
      font-size: 0.9rem;
    }
    
    /* ===== WHATSAPP BUTTON ===== */
    .whatsapp-float {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 999;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: var(--whatsapp);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(37,211,102,0.4);
      transition: var(--transition);
      text-decoration: none;
      animation: pulse 2s infinite;
    }
    
    .whatsapp-float:hover {
      transform: scale(1.1) rotate(5deg);
      box-shadow: 0 6px 25px rgba(37,211,102,0.6);
    }
    
    @keyframes pulse {
      0% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
      50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); }
      100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    }
    
    .whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .hamburger { display: block; }
      .nav-desktop { display: none; }
      .section { padding: 4rem 0; }
      .hero .container { padding: 3rem 1.5rem; }
      .hero h1 { font-size: 2.5rem; }
      .hero p { font-size: 1.1rem; }
      .mobile-menu { width: 100%; }
    }
    
    @media (max-width: 480px) {
      .container { padding: 0 1rem; }
      .btn { padding: 0.875rem 1.5rem; }
      .section { padding: 3rem 0; }
    }

/* ===== HEADER COLOR OPTION 2 (GRADIENT) ===== */
.header {
    background: linear-gradient(135deg, #0B2E3A, #1E6A78) !important;
}
.header a {
    color: #ffffff !important;
}
