/* 
 * ==========================================================================
 * PROYECTO: marIA.ar - Constitución V1
 * ARCHIVO: style.css (Nivel Theme)
 * ==========================================================================
 */

/* 1. IMPORTACIÓN DE FUENTES Y VARIABLES GLOBALES */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;800&display=swap');

:root {
    /* Paleta MarIA Premium */
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
    --g-dark: #202124;
    --g-gray: #F8F9FA;
    --white: #FFFFFF;
    
    /* Gradientes Tecnológicos */
    --gradient-primary: linear-gradient(135deg, var(--g-blue) 0%, #1A73E8 100%);
    --gradient-bg: linear-gradient(180deg, var(--white) 0%, var(--g-gray) 100%);
}

/* 2. ESTILOS BASE Y TIPOGRAFÍA */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-bg);
    color: var(--g-dark);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

h1, h2, h3 {
    color: var(--g-dark);
    line-height: 1.2;
    margin-top: 0;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5F6368; /* Gris oscuro para lectura prolongada */
    margin-bottom: 1.5rem;
}
/* Ocultar el título por defecto de las páginas en WordPress */
.page .entry-title, 
.page .page-title,
.page-header {
    display: none !important;
}

/* 3. CONTENEDOR PRINCIPAL */
.master-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* ==========================================================================
 * 4. COMPONENTE: HERO SECTION (ANCHO COMPLETO 60/40)
 * ========================================================================== */
.hero-master {
    padding: 5px 0px 10px 0px; /* 0px a los lados en el contenedor padre */
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    
    box-sizing: border-box;
}


/* Contenedor flexible principal */
.hero-container-flex {
    display: flex;
    flex-direction: column; /* Celular por defecto: vertical */
    align-items: center;
    justify-content: center;
    gap: 30px;              
    text-align: center;     
    width: 100%;
}

/* Caja de la Imagen/Video */
.hero-media-box {
    width: 100%;
    max-width: 100%; /* Permite que ocupe todo el ancho en móviles */
    padding: 0 20px; /* Pequeño margen para que la imagen no toque los bordes en celulares */
    box-sizing: border-box;
}

/* CONTROL DE BORDES: Solo vértices derechos redondeados */
.hero-media-box,
.hero-media-box img,
.hero-media-box video,
.media-master-1-1 {
    border-radius: 0 24px 0px 24px !important; 
    overflow: hidden; 
}

/* Caja del Texto */
.hero-text-box {
    width: 100%;
    padding: 0 20px; /* Margen de seguridad para el texto en celular */
    box-sizing: border-box;
}

.hero-master h1 {
    font-size: 2.2rem;      
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-master h1 span {
    color: var(--g-blue);   
}


/* ==========================================================================
 * AJUSTES DE ESCRITORIO (Desde pantallas de 768px en adelante)
 * ========================================================================== */
@media screen and (min-width: 768px) {
    .hero-master {
        padding: 0; /* Quitamos el padding vertical para que el centrado sea perfecto */
        min-height: calc(100vh - 90px); /* Ocupa el 100% del alto de la pantalla restando el header */
        display: flex;
        align-items: center; /* Centra el contenido verticalmente */
    }

    .hero-container-flex {
        flex-direction: row !important; /* Fila horizontal */
        text-align: left !important;    
        align-items: center;
        justify-content: space-between;
        gap: 0px;                       
        width: 100%; /* Fuerza a que el contenedor use todo el ancho disponible */
    }

    .hero-media-box {
        flex: 0 0 55% !important;       /* Ocupa exactamente el 55% de la pantalla */
        max-width: 55% !important;      
        padding: 0px !important;        /* Quitamos el margen para que pegue al borde izquierdo de la pantalla */
    }

    .hero-text-box {
        flex: 0 0 45% !important;       /* Ocupa exactamente el 45% de la pantalla */
        max-width: 45% !important;      
        padding-left: 10px !important;  /* Separación generosa entre imagen y texto */
        padding-right: 20px !important; /* Espacio de aire antes del borde derecho de la pantalla */
        box-sizing: border-box;         
    }

    .hero-master h1 {
        font-size: 3.8rem;              /* Un poco más grande para aprovechar el espacio extra */
    }
}
/* 5. COMPONENTE: BOTONES PREMIUM (Pill Style) */
.btn-master {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px; /* Bordes totalmente redondeados */
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.btn-master:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: var(--white);
}

.btn-master svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 6. COMPONENTE: WEB STORY (9:16) */
.master-label {
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--g-blue);
    margin-bottom: 20px;
}

.story-master-wrapper {
    width: 100%;
    max-width: 360px; /* Relación de aspecto vertical móvil */
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #E8EAED;
}

.story-master-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 7. COMPONENTE: TARJETAS (Borde 24px y sombra flotante) */
.grid-master {
    display: grid;
    /* Comportamiento por defecto para móviles y tablets */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* --- ESTA ES LA NUEVA REGLA PARA ESCRITORIO --- */
@media (min-width: 1024px) {
    .grid-master {
        /* Fuerza exactamente 4 columnas de igual tamaño en pantallas grandes */
        grid-template-columns: repeat(4, 1fr); 
    }
}
/* ---------------------------------------------- */

.card-master {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E8EAED;
}

.card-master:hover {
    transform: translateY(-8px); /* Elevación interactiva */
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card-master h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 8. COMPONENTE: MULTIMEDIA 1:1 */
.media-master-1-1 {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1; /* Espacio estricto cuadrado */
    margin: 0 auto;
    background: linear-gradient(135deg, #E8EAED 0%, #F8F9FA 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9AA0A6;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* 9. COMPONENTE: FAQ PREMIUM */
.master-h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.faq-master-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #E8EAED;
    overflow: hidden;
}

.faq-item summary {
    padding: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    color: var(--g-dark);
}

.faq-item summary span {
    color: var(--g-blue);
    font-size: 1.5rem;
    font-weight: 400;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
    padding: 0 24px 24px 24px;
    margin: 0;
}

/* 10. MEDIA QUERIES (Responsive) */
@media (max-width: 768px) {
    .hero-master h1 { font-size: 2.5rem; }
    .master-container { padding: 60px 20px; }
}/* 
 * ==========================================================================
 * NUEVOS COMPONENTES: marIA.ar
 * ==========================================================================
 */

/* Caja de Aviso Importante (Disclaimer) */
.disclaimer-master {
    background-color: #FFF8E1; /* Amarillo muy suave */
    border-left: 6px solid var(--g-yellow); /* Borde amarillo Google */
    padding: 24px 30px;
    border-radius: 0 16px 16px 0;
    margin: 40px auto;
    max-width: 900px;
    color: #614C00; /* Texto oscuro para contraste */
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.disclaimer-master strong {
    color: #B28900;
}

/* Lista del Proceso (Algoritmo) */
.process-master-list {
    list-style: none; /* Quitamos los números por defecto del navegador */
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.process-master-list li {
    background: var(--white);
    padding: 24px 30px;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid #E8EAED;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    font-size: 1.1rem;
    color: #5F6368;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.process-master-list strong {
    color: var(--g-dark);
    display: block;
    margin-bottom: 5px;
}

/* ==========================================================================
 * HEADER STYLES - marIA.ar Floating Toolbar
 * ========================================================================== */

.floating-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.85)), url('header.wewp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 234, 237, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

body {
    padding-top: 90px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.site-branding a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--g-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.site-branding a:hover {
    color: var(--g-blue);
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

.icon-bar {
    width: 25px;
    height: 3px;
    background-color: var(--g-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.menu-list li {
    display: inline-flex;
}

.maria-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--g-dark);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(232, 234, 237, 0.7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.maria-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.maria-button:hover::before {
    left: 0;
}

.maria-button:hover {
    color: var(--white);
    border-color: var(--g-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(66, 133, 244, 0.12);
    color: var(--g-blue);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-list {
        gap: 8px;
    }
}

@media (max-width: 1024px) {
    .menu-list {
        display: none;
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
    }

    .main-navigation.toggled .menu-list {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 0 15px;
    }

    .site-branding a {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .menu-list {
        top: 80px;
        padding: 16px;
    }
}



