/* --- Variables de Color y Tipografía --- */
:root {
  --purple: #4c2c92;
  --cyan: #30c3cd;
  --yellow: #fbb22b;
  --magenta: #d43d9a;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --bg-light: #ffffff;
  --bg-alt: #f7f5fa;
  --font-family: 'Montserrat', sans-serif;

  --pastel-cyan: rgba(48, 195, 205, 0.3);
  --pastel-magenta: rgba(212, 61, 154, 0.3);
  --pastel-yellow: rgba(251, 178, 43, 0.3);
  --pastel-lavender: rgba(76, 44, 146, 0.2);
}

/* --- Reset y Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); color: var(--text-dark); background-color: var(--bg-light); line-height: 1.7; }

/* --- Contenedores y Tipografías Reutilizables --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.alt-bg { background-color: var(--bg-alt); }
.text-center { text-align: center; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--purple); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: #6c757d; max-width: 600px; margin: 0 auto 3rem auto; }

/* --- Botón base --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-light);
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
  background-size: 200% auto;
  border: none;
  transition: background-position 0.4s ease, transform 0.3s ease;
}
.btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  color: var(--text-light);
}

/* --- Header y Navegación --- */
.header {
  background-color: var(--bg-light);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--purple);
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.logo img {
  height: 150px;
  width: auto;
  margin-right: 15px;
  filter: none;
}
.logo:hover { transform: scale(1.02); }

/* Menú escritorio */
.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.menu a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.menu a:hover { color: var(--purple); }
.menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow), var(--magenta));
  transition: width .25s ease;
}
.menu a:hover::after { width: 100%; }

/* --- Botón Hamburguesa --- */
.nav-toggle {
  display: none; /* se muestra en mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--purple);
  border-radius: 3px;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), opacity .2s, background-color .2s;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hamburger { top: 50%; transform: translate(-50%, -50%); }
.hamburger::before { top: calc(50% - 8px); }
.hamburger::after { top: calc(50% + 8px); }

/* Estado abierto (X) */
.nav-toggle.is-active .hamburger { background-color: transparent; }
.nav-toggle.is-active .hamburger::before { transform: translate(-50%, 8px) rotate(45deg); background-color: var(--text-light); }
.nav-toggle.is-active .hamburger::after { transform: translate(-50%, -8px) rotate(-45deg); background-color: var(--text-light); }

/* --- Menú móvil (overlay) --- */
.menu-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(76,44,146,0.97);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: right .42s cubic-bezier(.77,0,.175,1), opacity .25s ease;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
}
.menu-container.is-active {
  right: 0;
  opacity: 1;
  pointer-events: auto;
}
.menu-container .menu {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  padding: 2rem;
}
.menu-container .menu a {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
.menu-container .menu a::after { width: 0; background: none; }

/* --- Hero y demás secciones (mantengo tus estilos existentes) --- */
.hero { background: linear-gradient(to bottom, #fdfcff, #ffffff); padding: 5rem 1.5rem; text-align: center; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--magenta), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.hero-content p { font-size: clamp(1.1rem, 2.5vw, 1.25rem); color: #555; margin-bottom: 2.5rem; max-width: 700px; margin-left:auto; margin-right:auto; }

/* Secciones, cards, valores, servicios (mantengo tus reglas) */
#nosotros .container{ display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; align-items:center; }
.card{ background:#fff; padding:2.5rem; border-radius:16px; box-shadow:0 8px 25px rgba(0,0,0,0.07); }
.values-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap:1.5rem; margin-top:3rem; }
.value-item{ padding:2rem 1.5rem; border-radius:12px; background:white; box-shadow:0 4px 15px rgba(0,0,0,0.05); text-align:center; border-top:4px solid; transition:transform .3s; }
.value-item:hover{ transform: translateY(-8px); }
.value-item:nth-child(5n+1){ border-color:var(--cyan); }
.value-item:nth-child(5n+2){ border-color:var(--yellow); }
.value-item:nth-child(5n+3){ border-color:var(--magenta); }
.value-item:nth-child(5n+4){ border-color:var(--cyan); }
.value-item:nth-child(5n+5){ border-color:var(--purple); }
.value-item h3{ color:var(--purple); margin:1rem 0 .5rem; }

.servicios-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap:2rem; margin-top:3rem; }
.servicio-card{ background:var(--bg-alt); color:var(--text-dark); padding:2rem; border-radius:12px; text-align:left; position:relative; overflow:hidden; transition: transform .3s, box-shadow .3s; }
.servicio-card::before{ content:''; position:absolute; top:0; left:0; width:100%; height:8px; background-color: var(--servicio-color, var(--purple)); }
.servicio-card:hover{ transform: translateY(-10px); box-shadow:0 10px 30px rgba(0,0,0,0.1); }

/* Contact form base (mantengo la apariencia que sugeriste) */
.form { max-width: 600px; margin: 2rem auto 0; display: grid; gap: 1rem; padding: 2rem; background-color: #f7f5fa; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.08); }
.form input, .form textarea { width: 100%; padding: 1rem; border: 1px solid #ccc; border-radius: 8px; font-family: var(--font-family); font-size: 1rem; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(48,195,205,0.15); }
.form button[type="submit"] { background-color: var(--purple); color: #fff; padding: 1rem 2rem; border: none; border-radius: 8px; cursor: pointer; font-weight:700; }
.form button[type="submit"]:hover { background-color: #6d28d9; }

/* --- Sección Contacto (grid y botones) --- */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; margin-top: 1.25rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; padding: 1.8rem; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.contact-card.info { text-align: left; }
.map-link { display: inline-block; color: var(--purple); font-weight: 600; text-decoration: none; margin-top: 0.5rem; }
.map-link:hover { text-decoration: underline; }
.whatsapp-btn { display: inline-block; margin-top: 0.8rem; background: linear-gradient(90deg,#25D366 0%,#128C7E 100%); color: #fff; padding: 0.9rem 1.25rem; border-radius: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(37,211,102,0.18); }
.whatsapp-btn:hover { filter: brightness(.95); transform: translateY(-2px); transition: .18s; }
.small-note { margin-top: 1rem; color: #555; font-size: 0.95rem; }

/* Footer */
.footer { background-color: #2b1554; color: var(--text-light); text-align: center; padding: 2.5rem 1.5rem; margin-top: 2rem; border-top: 4px solid; border-image: linear-gradient(90deg,var(--cyan),var(--yellow),var(--magenta)) 1; }

/* --- Patterns (mantengo tus utilidades) --- */
/* ... (mantén las clases .bg-brand-soft, .bg-band, .bg-logo-pattern, etc. si las usas) ... */

/* --- Responsive: mostrar hamburguesa en mobile y ajustes --- */
@media (max-width: 1024px) {
  .logo img { height: 100px; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .nav { min-height: 70px; height: auto; }
  .logo img { height: 70px; margin-right: 10px; }
  .logo span { display: none; }
  .menu { display: none; }
  .nav-toggle { display: flex; }
  .nav { height: 80px; min-height: 0; }
  .menu-container { backdrop-filter: blur(6px); }
  #nosotros .container { grid-template-columns: 1fr; }
  .card { padding: 2rem; }
}
/* PAQUETES MEJORADOS */
/* PAQUETES CON IMÁGENES MÁS GRANDES Y LEGIBLES */
.paquete-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

.paquete-imagen {
    width: 100%;
    height: 280px; /* ← AUMENTADO de 220px a 280px */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin: -2rem -2rem 0 -2rem; /* ← Más margen negativo para llenar mejor */
    position: relative;
}

.paquete-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* ← Centra la imagen */
    transition: transform 0.3s ease;
}

.paquete-card:hover .paquete-imagen img {
    transform: scale(1.05); /* ← Efecto zoom suave al hover */
}

/* Overlay sutil para mejorar legibilidad del texto de las imágenes */
.paquete-imagen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(255,255,255,0.1) 0%, 
        rgba(0,0,0,0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.paquete-contenido {
    padding: 2rem; /* ← Más padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 0 0 16px 16px;
}

.paquete-contenido h3 {
    margin: 0 0 1rem 0; /* ← Más espacio */
    color: var(--purple);
    font-size: 1.4rem; /* ← Un poco más grande */
    font-weight: 700;
}

.precio {
    margin-bottom: 1.25rem;
}

.precio-actual {
    display: block;
    font-size: 1.75rem; /* ← Más grande */
    font-weight: 800;
    color: #28a745;
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.precio-habitual {
    color: #6c757d;
    font-size: 0.95rem;
    text-decoration: line-through;
    font-weight: 500;
}

.paquete-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
}

.paquete-lista li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.8rem;
    font-weight: 500;
    color: #333;
}

.paquete-lista li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--servicio-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .paquete-imagen {
        height: 240px; /* ← Más grande también en móvil */
        margin: -1.5rem -1.5rem 0 -1.5rem;
    }
    
    .paquete-contenido {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .paquete-imagen {
        height: 200px;
    }
}


/* REDES SOCIALES DESTACADAS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.footer-note {
    color: #d1c4e9;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive paquetes */
@media (max-width: 768px) {
    .paquete-imagen {
        height: 180px;
    }
}
/* PAQUETES CON TEXTO SOBRE IMAGEN - LEGIBLE AL 100% */
.paquete-superior {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 420px; /* ← Altura fija perfecta */
    display: flex;
    flex-direction: column;
}

.paquete-superior:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.paquete-imagen-superior {
    height: 60%; /* ← Imagen ocupa 60% del espacio */
    position: relative;
    overflow: hidden;
}

.paquete-imagen-superior img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.paquete-superior:hover .paquete-imagen-superior img {
    transform: scale(1.08);
}

.paquete-texto-superior {
    height: 40%;
    padding: 1.8rem;
    background: rgba(255,255,255,0.98);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(10px);
}

.paquete-texto-superior h3 {
    margin: 0 0 1rem 0;
    color: var(--color-paquete);
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
}

.precio-superior {
    text-align: center;
    margin-bottom: 1rem;
}

.precio-actual {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--color-paquete);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.precio-antiguo {
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: line-through;
    display: block;
    margin-top: 0.2rem;
}

.paquete-texto-superior ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.paquete-texto-superior li {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.paquete-texto-superior i {
    color: var(--color-paquete);
    margin-right: 0.8rem;
    font-size: 1rem;
    width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .paquete-superior {
        height: 380px;
    }
    
    .paquete-imagen-superior {
        height: 55%;
    }
    
    .paquete-texto-superior {
        height: 45%;
        padding: 1.5rem;
    }
    
    .precio-actual {
        font-size: 1.8rem;
    }
}
