@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --primary-cyan: #29D2F2; /* El color exacto del botón */
    --primary-hover: #22b8d6;
    --text-dark: #171e2e;
    --text-body: #4B5563;
    --bg-blue: #F0F6FF; /* Fondo azul muy pálido del diseño */
    --white: #FFFFFF;
    
    /* Variables de espaciado para consistencia */
    --radius-lg: 24px;
    --radius-btn: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-blue);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden; /* Previene scroll horizontal por los efectos */
    -webkit-overflow-scrolling: touch;
    
}

body.contact-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Fuerza la altura mínima de pantalla completa */
}

/* --- NAV --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%; /* Alineado con el container principal */
    max-width: 2000px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
}

.brand a{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.brand a:hover{
    opacity: 0.8;
}

.brand .nav-logo {
    height: 32px;
    width: auto;
    margin-right: 10px;
    display: block;
}

.nav-contact {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-contact:hover{
    opacity: 0.8;
}


/* --- HERO --- */
.hero-container {
    display: flex;
    justify-content: space-between;
    padding: 8rem 5% 6rem 5%; /* Mucho espacio abajo para los widgets */
    max-width: 2000px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-container, .features-container {
    padding-left: 5%;  /* <--- Aumenta este % para "comprimir" el sitio hacia el centro */
    padding-right: 5%;
}

.hero-text {
    flex: 0 0 45%; /* Ocupa el 45% del ancho */
    z-index: 10;
}

.tagline {
    color: var(--primary-cyan);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem); /* Tipografía grande y bold */
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-text p {
    color: var(--text-body);
    opacity: 0.8;
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 2.5rem;
    max-width: 2000px;
}

/* --- HERO IMAGES & WIDGET LAYERING --- */
.hero-image-wrapper {
    flex: 1;
    position: relative; 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    /* Importante: Permitir que los widgets se "salgan" del cuadro */
    z-index: 1; 
}

.main-photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    /* Aseguramos que la foto base sea el ancla */
    display: block;
    position: relative;
    z-index: 1;
    max-width: 80%;

    object-fit: contain; /* Asegura que nunca se recorte ni deforme */
    align-self: center; /* Refuerzo para centrado vertical */
}

.floating-widgets {
    z-index: 2; /* Encima de la foto */
    width: 160%; /* Hacemos que sea un 40% más ancho que la foto principal */
    max-width: 160%; /* Permitimos que desborde */
    /* Animación y Sombra */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
    
    /* Para que no intercepte clics si tapa algo importante (opcional) */
    pointer-events: none; 
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* --- SEPARATOR & TITLES --- */
.section-spacer {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.section-spacer p{
    color: var(--text-body);
    font-size: 1.1rem;
    opacity: 0.8;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* --- CARDS GRID --- */
.features-container {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /*grid-template-columns: repeat(auto-fill, 400px);*/
    gap: 2rem; /* Espaciado generoso entre tarjetas */
    padding: 0 5% 6rem 5%;
    max-width: 2000px;
    margin: 0 auto;
    align-items: stretch;
}

.column {
    width:100%;
    min-width: 0;
    height:100%;
    min-height: auto;
    
    background-color: var(--white);
    padding: 4rem 2rem; /* Mucho padding interno */

    border-radius: var(--radius-lg);
    text-align: center;
    /* La sombra exacta "soft UI" */
    box-shadow: 0 20px 40px -10px rgba(18, 56, 105, 0.06); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* El contenido empieza arriba */
    align-items: center;
}

.column:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(18, 56, 105, 0.1);
}


.icon-wrapper {
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.icon-wrapper img {
    height: 100%; /* Ajusta el tamaño del SVG */
    width: auto;
}

.column h3 {
font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 80%; /* Evita que el texto llegue al borde absoluto de la tarjeta */
    margin-inline: auto;
    color: var(--text-dark);
}

.column p {
    opacity: 0.8;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-inline: auto;
    padding: 0 10px; /* Pequeño margen lateral interno */
    max-width: 28ch;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: var(--primary-cyan);
    color: var(--white);
    border: none;
    padding: 14px 32px; /* Botón gordito */
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px; /* Un poco menos redondeado que las cards */
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(41, 210, 242, 0.25);
    transition: all 0.2s ease;
    margin-bottom: 3rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(41, 210, 242, 0.35);
}

/* --- CTA SECTION REDESIGN --- */
.cta-section {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Esto obliga a que imagen y card midan lo mismo en altura */
    padding: 8rem 5%; /* Mismo padding que el hero para mantener la línea */
    max-width: 2000px;
    margin: 0 auto;
    gap: 0rem; /* Mismo gap que el hero */
}

.last-img{
    flex: 0 1 50%;
    max-width: 600px;
    display: flex;
    z-index: 1;
}
.last-img img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita deformación llenando todo el espacio */
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.cta-card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    max-width: 600px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 30px 60px -15px rgba(3, 34, 41, 0.35); /* Sombra con el color de marca */
    border: 1px solid rgba(22, 22, 22, 0.2);
    border-left: none;
}
.cta-card img{
    width:10%;
    margin-bottom: 20px;;
}

.txt-msg {
    background-image: url("img/bg-msgs.png");
    background-repeat: no-repeat;
    background-position: center center; /* Centra la imagen en X e Y */
    
    /* SOLUCIÓN: Cambia 'cover' por tus medidas manuales.
       El primer valor es ancho, el segundo es alto (auto mantiene la proporción). */
    background-size: 2160px auto; 

    /* Opcional: Para centrar el texto verticalmente si la imagen define la altura */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    /* Asegura que el contenedor tenga altura suficiente para la imagen */
    min-height: 1200px; 

    /* Padding para que el texto no toque los bordes visuales de la imagen */
    padding: 3rem;
    
    font-size: 2rem;
    text-align: center;
    margin: 4rem auto; /* 'auto' a los lados centra el div en la página */
    line-height: 1.2;
}

.txt-msg h2 {
    display:flex;
    font-size:3rem;
    margin-top:350px;
    max-width: 25ch;
    margin-bottom:15px;
}
.txt-msg p{
    color: var(--text-body);
    opacity:0.8;
    font-size: 1.5rem;
    max-width: 800px;
}

/* Efecto decorativo de fondo */
.cta-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(41, 210, 242, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.sub-bold {
    font-size: 1.6rem; /* Un poco más grande para autoridad */
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 18px;
    margin-bottom: 10px;
}

.sub-cta {
    color: var(--text-body);
    font-size: 1.1rem;
    opacity: 0.8;
}

.sub-cta2 {
    color: var(--text-body);
    font-size: 1.3rem;
    opacity: 0.8;
}

/* Ajuste al botón para este hook */
.cta-card .btn-primary {
    margin-top: 3rem;
    margin-bottom: 0;
    padding: 1rem 1rem;
    font-size: 1.1rem;
    animation: pulse-shadow 3s infinite;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(41, 210, 242, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(41, 210, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(41, 210, 242, 0); }
}

/* ==========================================================================
   Footer Section (Mimyoh Studio Shared Footer)
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
  background-color: #333333;
  color: #ffffff;
  box-sizing: border-box;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer .footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
}

@media (min-width: 768px) {
  .site-footer .footer-container {
    padding: 100px 100px 60px;
    gap: 22px;
  }
}

@media (min-width: 1280px) {
  .site-footer .footer-container {
    padding: 120px 40px 60px;
  }
}

.site-footer .footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.site-footer .footer-mark-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

@media (min-width: 768px) {
  .site-footer .footer-mark-wrapper {
    width: 100px;
    height: 100px;
  }
}

.site-footer .footer-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.site-footer .footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 22px;
  color: #ffffff;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .site-footer .footer-brand-text {
    font-size: 18px;
    line-height: 30px;
  }
}

.site-footer .footer-company {
  color: inherit;
}

.site-footer .footer-email {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.site-footer .footer-email:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer .footer-address {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 20px;
  color: #ffffff;
  opacity: 0.3;
  width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .site-footer .footer-address {
    font-size: 16px;
    line-height: 24px;
  }
}

.site-footer .footer-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 20px;
  color: #ffffff;
  opacity: 0.3;
}

@media (min-width: 768px) {
  .site-footer .footer-legal-links {
    font-size: 16px;
    line-height: 24px;
  }
}

.site-footer .footer-legal-links a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.site-footer .footer-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer .footer-dot {
  color: inherit;
  user-select: none;
}

.site-footer .footer-divider {
  width: 320px;
  max-width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  margin: 6px 0;
}

@media (min-width: 768px) {
  .site-footer .footer-divider {
    width: 429px;
  }
}

.site-footer .footer-copyright {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 20px;
  color: #ffffff;
  opacity: 0.3;
  width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  .site-footer .footer-copyright {
    font-size: 16px;
    line-height: 24px;
  }
}



/* =========================================
   RESPONSIVIDAD & FIXES (Mobile First Logic)
   ========================================= */

/* 1. Ajuste Global de Seguridad (Critical Fix) */
/* Evita que las cards rompan pantallas pequeñas antes de los breakpoints */
.column {
    width: 100%;
    min-width: unset; /* Anulamos el bloqueo de 400px */
    max-width: 450px; /* Mantiene la estética en escritorio */
}

/* 2. TABLET (Landscape / Pantallas Medianas) */
/* Rango aprox: 1024px a 1366px */
@media screen and (max-width: 1280px) {

    .hero-container {
        gap: 2rem; /* Reducimos el hueco gigante de 4rem */
        padding-top: 3.5rem;
    }

    .hero-text h1 {
        font-size: 2.6rem;
        margin-bottom: 1.25rem;
    }

    .hero-text p {
        margin-bottom: 1.25rem;
    }
    
    .btn-primary {
        margin-bottom: 1.5rem;
    }
    
    /* Ajustamos el widget para que no tape el texto en pantallas medianas */
    .floating-widgets {
        width: 140%; /* Reducimos levemente la expansión */
        left: -10%; /* Lo centramos un poco más respecto a su padre */
    }

    .features-container {
        display: grid;
        gap: 1.5rem;
        padding: 0 5% 6rem 5%;
    }
    
    .features-container h3 {
        font-size: 2rem;
    }

    .features-container p {
        font-size: 1rem;
        max-width: 100%;
        padding: 0;
    }

    .main-photo {
        max-width: 95%;
        width: 100%;
    }

    .hero-image-wrapper {
        flex: 1.2;
    }

    .column {
        width:100%;
        height: auto;
        min-height: auto;
        padding: 2.5rem 1rem;
    }

    .icon-wrapper {
        height: 18%;
    }

    .section-spacer{
        margin-top: 0;
    }

}

/* 3. MOBILE & TABLET PORTRAIT (Vertical Standard) */
/* Rango: Menor a 992px (Punto de quiebre industria) */
@media screen and (max-width: 992px) {

    header {
        max-height: 1000px;
    }
    /* --- HERO VERTICAL --- */
    .hero-container {
        flex-direction: column; /* Apila los elementos */
        text-align: center; /* Centra textos para móvil */
        padding-top: 4rem;
        gap: 3rem;
        overflow: hidden; /* Cortafuegos final para desbordes */
    }

    .hero-text {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra el botón y textos */
        z-index: 5;
    }

    .hero-text h1 {
        font-size: 3rem; /* Ajuste visual para móvil */
        margin-left: 5%;
        margin-right: 5%;
    }

    .btn-primary {
        margin-bottom: 0;
    }
    
    /* --- WIDGET HANDLING (Requisito Crítico) --- */
    /* Lo ocultamos como solicitaste para limpiar la vista */
    .floating-widgets {
        display: none !important; 
    }

    /* --- IMAGEN HERO --- */
    .hero-image-wrapper {
        justify-content: center; /* Centramos la imagen */
        width: 100%;
    }

    .main-photo {
        max-width: 100%; /* Aprovecha el ancho completo del móvil */
        width: 90%; /* Margen estético */
    }

    /* --- CARDS & FEATURES --- */
    .features-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-bottom: 4rem;
    }

    /* Ajustes tipográficos para lectura en móvil */
    .column {
        width: 90%;
        padding: 3rem 1.5rem;
        min-height: auto; /* Quitamos la altura forzada */
    }

    .column h3 {
        font-size: 1.8rem;
    }

    .column p {
        max-width: 100%; /* Usamos todo el espacio de la tarjeta */
    }

    /* --- NAV --- */
    nav {
        padding: 1.5rem 5%;
        align-items: center;
    }
    
    .brand img {
        height: 28px !important; /* Ajuste sutil de logo */
    }

    .section-spacer{
        padding: 0 0 0 0;
        margin-top: 0;
        margin-bottom: 6rem;
    }

    .cta-section {
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Devolvemos el espacio en móvil */
    }

    .last-img {
        max-width: 100%;
        width: 100%;
    }

    .last-img img {
        /* Devolvemos los bordes redondos completos */
        border-radius: var(--radius-lg); 
    }

    .cta-card {
        text-align: center;      /* Vuelve a centrar texto en móvil */
        align-items: center;     /* Vuelve a centrar botón y logo en móvil */
        border-radius: var(--radius-lg); /* Bordes redondos completos */
        border-left: 1px solid rgba(41, 210, 242, 0.1); /* Restauramos el borde */
    }

}

/* 4. MOBILE PEQUEÑO (Ajuste fino) */
@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* =========================================
   PÁGINA DE CONTACTO
   ========================================= */

/* Contenedor que centra todo vertical y horizontalmente */
.contact-wrapper {
    flex:1;
    display: flex;
    
    min-height: 80vh; /* Ocupa casi toda la pantalla */
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    padding: 2rem 5%;
}

.contact-card-center {
    background-color: var(--white);
    max-width: 600px;
    width: 100%;
    padding: 5rem 3rem; /* Espaciado generoso interno */
    border-radius: var(--radius-lg);
    text-align: center;
    
    /* La misma sombra suave de tus otras cards */
    box-shadow: 0 30px 60px -15px rgba(18, 56, 105, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Animación sutil de entrada */
    animation: fadeUp 0.8s ease-out forwards;
}

.contact-card-center h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.1;
}

.contact-card-center p {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Estilo destacado para el correo */
.email-display {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Se adapta al móvil */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--bg-blue); /* Fondo sutil */
    border-radius: 12px;
    border: 1px dashed rgba(41, 210, 242, 0.3); /* Borde punteado estilo cyan */
    user-select: all; /* Facilita copiar al hacer click */
}

.small-note {
    font-size: 0.9rem !important; /* Forzamos tamaño pequeño */
    margin-top: 2rem;
    margin-bottom: 0 !important;
    opacity: 0.6;
}

/* Animación de entrada */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes Responsivos para Contacto */
@media screen and (max-width: 768px) {
    .contact-card-center {
        padding: 3rem 1.5rem;
    }
    
    .contact-card-center h1 {
        font-size: 2.2rem;
    }
    
    .contact-wrapper {
        min-height: 70vh; /* Menos altura forzada en móvil */
        align-items: flex-start; /* Subimos un poco el contenido */
        padding-top: 4rem;
    }
}