/* ============================================================
   1. VARIABLES DE MARCA
   ============================================================ */
:root {
  --color-blue: #0b3c5d;
  --color-blue-dark: #072a42;
  --color-pink: #e91e63;
  --color-yellow: #ffc107;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-gray-light: #f4f4f4;
  --color-text-main: #333333;

  --radius: 8px;
  --header-height: 70px;
}

/* ============================================================
   2. BASE & RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-black);
  /* Fondo base negro */
  line-height: 1.6;
  padding-top: var(--header-height);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

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

/* ============================================================
   3. NAVBAR (Fondo Blanco - Logo Original)
   ============================================================ */
header {
  background-color: var(--color-white);
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.navbar {
  /* max-width: 1200px; */
  max-width: 92%;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo en Header */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}

.logo:hover img {
  transform: scale(1.05);
}

/* Enlaces */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-pink);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Menú Móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-black);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
}

/* ============================================================
   4. BOTONES (UI)
   ============================================================ */
.btn {
  display: inline-block;
  background-color: var(--color-pink);
  color: var(--color-white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.btn:hover {
  background-color: #c2185b;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-yellow:hover {
  background-color: #ffca2c;
  color: black;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* ============================================================
   5. SECCIONES GLOBALES (INICIO)
   ============================================================ */
main {
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
}

section {
  padding: 5rem 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-full {
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
}

/* Color Blocks */
.bg-white {
  background-color: var(--color-white);
  color: var(--color-text-main);
}

.bg-white h2 {
  color: var(--color-blue);
}

.bg-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.bg-black h2 {
  color: var(--color-white);
}

.bg-black p {
  color: #cccccc;
}

.bg-yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

.bg-yellow h2 {
  color: var(--color-black);
}

/* HERO INICIO */
.hero-full {
  position: relative;
  background-image: linear-gradient(to bottom, rgba(11, 60, 93, 0.7), rgba(0, 0, 0, 0.8)), url('img6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* TARJETAS BENEFICIOS */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-gray-light);
  padding: 2.5rem;
  border-radius: var(--radius);
  border-top: 5px solid var(--color-blue);
  transition: transform 0.3s;
}

.card:nth-child(2) {
  border-top-color: var(--color-pink);
}

.card:nth-child(3) {
  border-top-color: var(--color-yellow);
}

.card:hover {
  transform: translateY(-5px);
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}

/* IMAGENES FULL WIDTH */
.image-section {
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.bg-work {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 60%), url('img10.jpg');
  justify-content: flex-start;
}

.bg-family {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.8) 0%, transparent 60%), url('img9.jpg');
  justify-content: flex-end;
}

.floating-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-black);
  padding: 3rem;
  max-width: 500px;
  margin: 0 5%;
  border-radius: 4px;
  border-left: 8px solid var(--color-pink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.floating-card h2 {
  color: var(--color-blue);
  font-size: 2rem;
}

/* GALERÍA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #333;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, var(--color-black), transparent);
  padding: 1.5rem;
  color: white;
}

.gallery-caption h3 {
  color: var(--color-yellow);
  margin-bottom: 0.2rem;
}

/* ============================================================
   6. PÁGINA: PLANES
   ============================================================ */
.plans-page-hero {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
  padding: 8rem 1.5rem 10rem 1.5rem;
  text-align: center;
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: 0;
}

.plans-page-hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.plans-page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
}

.plans-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
  position: relative;
  z-index: 10;
  margin-top: -8rem;
}

.plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  align-items: flex-start;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  width: 350px;
  overflow: hidden;
  transition: transform 0.3s;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pricing-header {
  background-color: var(--color-blue);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.pricing-header h2 {
  color: white;
  margin: 0;
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 800;
}

.pricing-card.featured .pricing-header {
  background-color: var(--color-pink);
}

.pricing-card.plus .pricing-header {
  background-color: var(--color-yellow);
}

.pricing-body {
  padding: 2rem;
  text-align: center;
}

.price-tag {
  font-size: 3.5rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.price-period {
  display: block;
  font-size: 1.1rem;
  color: #888;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  color: #555;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pricing-card .pricing-features svg {
  color: var(--color-blue);
}

.pricing-card.featured .pricing-features svg {
  color: var(--color-pink);
}

.pricing-card.plus .pricing-features svg {
  color: var(--color-yellow);
}

.ift-folio {
  font-size: 0.8rem;
  color: #999;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pricing-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.pricing-btn.plus{
  background-color: var(--color-yellow);
  color: var(--color-black);
  border: 1px solid var(--color-yellow);
  box-shadow: 0 15px 35px rgba(255, 176, 0, 0.4);
}

.pricing-btn.initial{
  background-color: var(--color-blue);
  color: var(--color-white);
  border: 1px solid var(--color-blue);
  box-shadow: 0 15px 35px rgba(0, 0, 255, 0.4);
}

.legal-note {
  text-align: center;
  margin-top: 4rem;
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   7. PÁGINA: CONTACTO
   ============================================================ */
.contact-hero {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
  padding: 8rem 1.5rem 12rem 1.5rem;
  text-align: center;
  color: white;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: 0;
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.contact-wrapper {
  max-width: 1100px;
  margin: -10rem auto 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.3s;
  border-left: 5px solid var(--color-yellow);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
  background: #f0f4f8;
  color: var(--color-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-blue-dark);
}

.info-content p {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.info-content a {
  color: var(--color-pink);
  font-weight: 600;
}

.form-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-card h2 {
  color: var(--color-blue);
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #444;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
  background: white;
  outline: none;
}

.submit-btn {
  width: 100%;
  background-color: var(--color-pink);
  color: white;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #c2185b;
}

#formStatus {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.status-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ============================================================
   8. PÁGINAS LEGALES (Corrección Fondo Blanco)
   ============================================================ */
.legal-document,
.legal-container {
  background-color: var(--color-white);
  color: #333;
  padding: 4rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin: 3rem auto;
}

.legal-document h1,
.legal-document h2 {
  color: var(--color-blue);
}

.legal-document p,
.legal-document li {
  color: #444;
}

/* ============================================================
   9. FOOTER (Fondo Negro - Logo Blanco)
   ============================================================ */
footer {
  background-color: var(--color-black);
  color: #888;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

/* IMPORTANTE: Logo siempre blanco en footer */
footer .footer-logo img {
  filter: brightness(0) invert(1) !important;
  height: 60px;
  width: auto;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
}

.footer-links a:hover {
  color: var(--color-yellow);
  border-bottom-color: var(--color-pink);
}

footer address {
  font-style: normal;
  margin-bottom: 2rem;
  line-height: 1.8;
  color: #aaa;
}

footer address a {
  color: var(--color-pink);
  font-weight: bold;
}

.copyright {
  font-size: 0.85rem;
  color: #555;
  margin-top: 2rem;
  border-top: 1px solid #222;
  padding-top: 1rem;
}

/* ============================================================
   10. RESPONSIVE (MÓVIL Y TABLET)
   ============================================================ */
@media (max-width: 768px) {

  /* MENÚ */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  /* HERO INICIO */
  .hero-full {
    height: auto;
    min-height: 85vh;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
    word-wrap: break-word;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }

  .hero-buttons .btn {
    flex: 1;
  }

  /* FULL WIDTH IMAGES */
  .image-section {
    flex-direction: column;
    padding: 4rem 1rem;
  }

  .floating-card {
    width: 100%;
    margin: 0;
    border-left: none;
    border-top: 8px solid var(--color-pink);
  }

  /* GALERIA & FOOTER */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* CORRECCIÓN PLANES (MÓVIL) */
  .plans-page-hero {
    padding: 6rem 1rem 8rem 1rem;
  }

  .plans-section {
    margin-top: -6rem;
    padding: 0 1rem 3rem 1rem;
  }

  .pricing-card {
    width: 100%;
  }

  /* CORRECCIÓN CONTACTO (MÓVIL - Evita desplazamiento a la izquierda) */
  .contact-wrapper {
    margin-top: -3rem;
    /* Menos margen negativo */
    width: 95%;
    /* Ocupa casi todo el ancho */
    margin-left: auto;
    margin-right: auto;
    /* Centrado automático */
    padding: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-card,
  .form-card {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    /* Previene desbordamiento */
  }

  /* Asegurar que inputs no rompan el ancho */
  .form-group input,
  .form-group textarea {
    width: 100%;
    min-width: 0;
  }

  .contact-hero {
    padding-bottom: 5rem;
  }
}

/* ==============================
   BOTONES FLOTANTES (ESTILO APP OFICIAL)
   ============================== */
.floating-socials {
  position: fixed;
  bottom: 25px; /* Un poco más pegado al borde */
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2000;
  
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-socials.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Sombra elegante */
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; /* Quita subrayado */
}

/* Efecto al pasar el mouse (Crece un poco) */
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Colores OFICIALES de las marcas */
.fb-btn {
  background-color: #1877F2; /* Azul Facebook Oficial */
}

.wa-btn {
  background-color: #25D366; /* Verde WhatsApp Oficial */
}

/* Centrado perfecto de los iconos SVG */
.float-btn svg {
  display: block;
  /* Los tamaños ya están definidos en el HTML (width/height) para precisión */
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .floating-socials {
    bottom: 20px;
    right: 20px;
    gap: 12px;
  }
  
  /* En celular los hacemos un pelín más pequeños pero cómodos al tacto */
  .float-btn {
    width: 55px;
    height: 55px;
  }
  
  /* Ajuste proporcional del icono dentro */
  .fb-btn svg { width: 32px; height: 32px; }
  .wa-btn svg { width: 30px; height: 30px; }
}