/* ==========================================================================
   1. RESET GENERAL Y VARIABLES DE MARCA (Verdes Oscuros & Beiges)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    /* Paleta Oficial de la Marca */
    --earth-dark: #0f1f15;       
    --earth-dark-alt: #172c1e;   
    --beige-main: #e3d1b0;       
    --beige-dark: #ccbc9e;       
    --beige-light: #f7f4ed;      
    --beige-medium: #eeeae0;     
    --beige-card: #fdfcf9;       
    
    /* Tipografía y Textos */
    --text-dark: #1a261f;        
    --text-light: #f7f4ed;       
    --text-muted: #66736b;       
    --text-muted-light: #b2c0b6; 
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--beige-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo { 
    font-family: 'Georgia', serif; 
}

/* ==========================================================================
   2. VARIACIONES DE FONDOS Y TEXTOS UTILITARIOS
   ========================================================================== */
.base-beige-light { background-color: var(--beige-light); }
.base-beige-medium { background-color: var(--beige-medium); }
.base-beige-card { background-color: var(--beige-card); border: 1px solid #dfd9cb; }

.base-dark-earth { background-color: var(--earth-dark); }
.base-dark-earth-alt { background-color: var(--earth-dark-alt); }

.text-white { color: #ffffff; }
.text-beige { color: var(--beige-main); }
.text-muted-light { color: var(--text-muted-light); }

.section-title { 
    font-size: 34px; 
    text-align: center; 
    margin-bottom: 12px; 
    color: var(--earth-dark); 
    font-weight: normal; 
}
.section-title.text-beige { color: var(--beige-main); }

.section-subtitle { 
    text-align: center; 
    max-width: 600px; 
    margin: 0 auto 50px auto; 
    color: var(--text-muted); 
    font-size: 15px; 
}

.tag-section { 
    text-align: center; 
    font-size: 11px; 
    letter-spacing: 2px; 
    color: var(--beige-main); 
    margin-bottom: 10px; 
    font-weight: 600; 
}

/* ==========================================================================
   3. NAVBAR
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--earth-dark);
    color: var(--text-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(227, 209, 176, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: bold;
    color: var(--beige-main);
}

.nav-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-menu a {
    color: rgba(247, 244, 237, 0.8);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-menu a:hover { color: var(--beige-main); }

.btn-cotizar-nav {
    background-color: var(--beige-main);
    color: var(--earth-dark);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.btn-cotizar-nav:hover { background-color: var(--beige-dark); }

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero.full-screen {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--earth-dark);
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 750px;
    padding: 0 20px;
}

.hero-logo-main {
    height: 110px;
    width: auto;
    margin-bottom: 25px;
    object-fit: contain;
}

.tag-hero {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--beige-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title { 
    font-size: 56px; 
    line-height: 1.15; 
    margin-bottom: 20px; 
    color: var(--text-light);
    font-weight: normal;
}

.hero-slogan { 
    font-family: 'Georgia', serif; 
    font-style: italic; 
    font-size: 22px; 
    color: var(--beige-main); 
    margin-bottom: 25px; 
}

.hero-description {
    font-size: 15px;
    color: var(--text-muted-light);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }

.btn-beige-filled { 
    background-color: var(--beige-main); 
    color: var(--earth-dark); 
    padding: 12px 30px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}
.btn-beige-filled:hover { background-color: var(--beige-dark); }

.btn-outline { 
    border: 1px solid rgba(227, 209, 176, 0.4); 
    color: var(--text-light); 
    padding: 12px 30px; 
    border-radius: 4px; 
    text-decoration: none;
    font-size: 14px;
    transition: background rgba(227, 209, 176, 0.1) 0.2s ease;
}
.btn-outline:hover { background: rgba(227, 209, 176, 0.1); }

.hero-stats { display: flex; justify-content: center; gap: 50px; }
.stat-item h3 { font-size: 26px; color: var(--text-light); margin-bottom: 5px; font-weight: normal;}
.stat-item p { font-size: 12px; color: var(--text-muted-light); }

.scroll-indicator {
    position: absolute; 
    bottom: 25px; 
    font-size: 10px; 
    color: rgba(247, 244, 237, 0.4);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
    letter-spacing: 1px;
}

/* ==========================================================================
   5. SECCIONES BASE Y GRID (Modificado con sombras y elevación interactiva)
   ========================================================================== */
.features-section, .pricing-section, .form-section, .faq-section, .team-section {
    padding: 90px 8%;
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
    max-width: 1150px; 
    margin: 0 auto; 
}

.feature-card {
    padding: 35px 25px;
    border-radius: 12px;
    text-align: left;
    background-color: var(--beige-card);
    border: 1px solid rgba(223, 217, 203, 0.4);
    box-shadow: 0 4px 20px rgba(15, 31, 21, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(15, 31, 21, 0.09);
}

.feature-icon { color: var(--earth-dark); font-size: 22px; margin-bottom: 15px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--earth-dark); font-weight: normal; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   6. SECCIÓN PLANES
   ========================================================================== */
.pricing-container { 
    display: flex; 
    justify-content: center; 
    align-items: stretch; 
    gap: 25px; 
    max-width: 1050px; 
    margin: 40px auto 0 auto; 
    flex-wrap: wrap; 
}

.price-card {
    background-color: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(227, 209, 176, 0.15);
    border-radius: 8px; 
    padding: 40px 30px; 
    width: 310px; 
    color: var(--text-light);
    display: flex; 
    flex-direction: column;
}

.price-card.featured {
    border: 1px solid var(--beige-main);
    background-color: rgba(255, 255, 255, 0.04);
}

.recommended-tag { color: var(--beige-main); font-size: 10px; letter-spacing: 1.5px; font-weight: bold; margin-bottom: 8px;}
.price-card h3 { font-size: 24px; margin-bottom: 8px; font-weight: normal;}
.card-desc { font-size: 13px; color: var(--text-muted-light); margin-bottom: 30px; }

.features-list { list-style: none; margin-bottom: 30px; }
.features-list li { font-size: 13.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; color: rgba(247, 244, 237, 0.9); }
.features-list li i { color: var(--beige-main); font-size: 13px; }

.price-amount { font-size: 15px; font-weight: 600; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(227, 209, 176, 0.1); margin-bottom: 20px;}

.btn-card-outline, .btn-card-filled { 
    display: block; 
    text-align: center; 
    width: 100%; 
    padding: 12px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-size: 13px; 
    font-weight: 600;
}
.btn-card-outline { border: 1px solid var(--beige-main); color: var(--beige-main); transition: background 0.2s; }
.btn-card-outline:hover { background: rgba(227, 209, 176, 0.1); }
.btn-card-filled { background-color: var(--beige-main); color: var(--earth-dark); transition: background-color 0.2s; }
.btn-card-filled:hover { background-color: var(--beige-dark); }

/* ==========================================================================
   7. FORMULARIO
   ========================================================================== */
.form-container { 
    max-width: 520px; 
    margin: 30px auto 0 auto; 
    background-color: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(227, 209, 176, 0.1); 
    padding: 40px; 
    border-radius: 8px; 
}
.form-group { margin-bottom: 20px; text-align: left;}
.form-group label { display: block; color: var(--text-light); font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { 
    width: 100%; 
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(227, 209, 176, 0.2); 
    border-radius: 4px; 
    padding: 12px; 
    color: #ffffff; 
    font-size: 14px; 
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
    outline: none; 
    border-color: var(--beige-main); 
}
.form-group select option { background-color: var(--earth-dark-alt); color: #ffffff; }

.btn-submit { 
    width: 100%; 
    background-color: var(--beige-main); 
    color: var(--earth-dark); 
    border: none; 
    padding: 14px; 
    border-radius: 4px; 
    font-size: 14px; 
    font-weight: 600; 
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-submit:hover { background-color: var(--beige-dark); }

/* ==========================================================================
   8. FAQ
   ========================================================================== */
.faq-container { max-width: 650px; margin: 30px auto 0 auto; }
.faq-item { border-bottom: 1px solid rgba(15, 31, 21, 0.1); padding: 20px 0; text-align: left;}
.faq-question { display: flex; justify-content: space-between; align-items: center; color: var(--earth-dark); cursor: pointer; font-size: 16px; font-weight: 500;}
.faq-question i { font-size: 12px; transition: transform 0.2s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { color: var(--text-muted); font-size: 14px; line-height: 1.6; padding-top: 10px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ==========================================================================
   9. EQUIPO (Modificado con unificación visual y elevación interactiva)
   ========================================================================== */
.team-container { display: flex; justify-content: center; gap: 30px; max-width: 850px; margin: 40px auto 0 auto; flex-wrap: wrap; }

.team-card { 
    width: 320px; 
    text-align: center; 
    padding: 40px 25px; 
    border-radius: 12px; 
    background-color: var(--beige-card);
    border: 1px solid rgba(223, 217, 203, 0.4);
    box-shadow: 0 4px 20px rgba(15, 31, 21, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(15, 31, 21, 0.09);
}

.avatar { width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-family: 'Georgia', serif; font-size: 20px; color: var(--earth-dark); background-color: var(--beige-main); }
.team-card h3 { font-size: 20px; color: var(--earth-dark); margin-bottom: 4px; font-weight: normal; }
.role { font-size: 11px; letter-spacing: 1px; color: var(--text-muted); font-weight: bold; margin-bottom: 15px; }
.team-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.team-email { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; font-size: 13.5px; }
.team-email i { color: var(--earth-dark); }
.team-email a { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.team-email a:hover { color: var(--beige-dark); }

/* ==========================================================================
   10. FOOTER REESTRUCTURADO EN COLUMNAS
   ========================================================================== */
.footer { 
    background-color: #0a140e; 
    color: rgba(247, 244, 237, 0.6); 
    padding: 70px 8% 35px 8%; 
    font-size: 14px;
}

/* Contenedor Grid para las 4 columnas */
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    max-width: 1150px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Columna de Marca */
.footer-brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(247, 244, 237, 0.5);
    margin-top: 15px;
    max-width: 260px;
}

.footer-logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #ffffff; 
    font-size: 18px; 
    font-weight: bold;
    font-family: 'Georgia', serif;
}

/* Listas de enlaces */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: rgba(247, 244, 237, 0.7);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--beige-main);
    transform: translateX(3px); /* Pequeño empuje elegante al pasar el mouse */
}

/* Enlaces de contacto (iconos) */
.contact-links i {
    color: var(--beige-main);
    font-size: 13px;
    width: 16px;
}

.contact-links a:hover {
    transform: none; /* No se mueve el texto en contacto */
}

/* Línea divisoria y parte baja */
.footer-divider { 
    border: 0; 
    border-top: 1px solid rgba(227, 209, 176, 0.08); 
    margin: 40px 0 25px 0; 
}

.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 12px;
    color: rgba(247, 244, 237, 0.4);
}

.footer-slogan { 
    font-family: 'Georgia', serif; 
    font-style: italic; 
    color: rgba(227, 209, 176, 0.4); 
}

/* ==========================================================================
   AJUSTE RESPONSIVO EN MEDIA QUERIES (Para que no se rompa en celular)
   ========================================================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablets */
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 50px 5% 30px 5%;
    }
    .footer-container {
        grid-template-columns: 1fr; /* 1 sola columna en celular */
        gap: 35px;
        text-align: center;
    }
    .footer-brand-desc {
        margin: 15px auto 0 auto;
    }
    .footer-links li {
        justify-content: center;
    }
    .footer-bottom { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
}

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .nav-menu { display: none; }
    .pricing-container { gap: 20px; }
    .footer-contact-info { flex-direction: column; align-items: center; gap: 12px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================================================
   12. ANIMACIONES CON INTERSECTION OBSERVER (Efecto Entrada/Salida Infinito)
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

/* Se activa cuando JS detecta el elemento en pantalla */
.animate-on-scroll.element-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   ACTUALIZACIÓN DE NAVBAR - ÁREA CLIENTES
   ========================================================================== */

/* Contenedor de acciones en la navbar */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px; 
}

/* Botón de Área Clientes (Look sofisticado e iconográfico) */
.btn-portal-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: transparent;
    color: #cbbfa4; 
    border: 1px solid rgba(203, 191, 164, 0.4);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

.btn-portal-nav i {
    font-size: 11px;
    opacity: 0.8;
}

.btn-portal-nav:hover {
    background-color: rgba(203, 191, 164, 0.08);
    border-color: #cbbfa4;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Ajustes responsivos para celulares pequeños */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .nav-actions {
        width: 100%;
        justify-content: center;
    }
    .btn-portal-nav, .btn-cotizar-nav {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   ESTILOS GENERALES DEL PORTAL DE ACCESO
   ========================================================================== */
.portal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.portal-back-container {
    width: 100%;
    max-width: 550px;
    margin-bottom: 15px;
}

.btn-back-landing {
    color: #cbbfa4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.btn-back-landing:hover {
    opacity: 0.8;
}

.portal-container {
    width: 100%;
    max-width: 550px;
}

.portal-card {
    background-color: #112217; 
    border: 1px solid rgba(203, 191, 164, 0.15);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.portal-card.hidden, .admin-tab-content.hidden {
    display: none !important;
}

.portal-header {
    text-align: center;
    margin-bottom: 30px;
}

.portal-logo {
    height: 65px;
    margin-bottom: 15px;
}

.portal-header h2 {
    color: #cbbfa4;
    font-size: 24px;
    margin-bottom: 6px;
}

.portal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Campos de entrada con icono */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 14px;
    color: rgba(203, 191, 164, 0.5);
    font-size: 16px;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(203, 191, 164, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-icon-wrapper input:focus {
    border-color: #cbbfa4;
}

/* Errores */
.portal-error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: none;
    text-align: center;
}

/* Estilos de Dashboard Interno */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(203, 191, 164, 0.15);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.dashboard-header h2 {
    color: #ffffff;
    font-size: 22px;
}

.btn-logout {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #e74c3c;
    color: #ffffff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.dash-stat-box {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.dash-stat-box i {
    font-size: 24px;
    color: #cbbfa4;
    margin-bottom: 10px;
}

.dash-stat-box i.icon-progress {
    color: #f1c40f;
}

.status-badge.progress {
    color: #f1c40f;
    font-weight: 700;
    font-size: 14px;
}

.domain-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

/* Área Interna para la pasarela de pagos */
.portal-payments-section {
    border-radius: 8px;
    padding: 20px;
    border: 1px dashed rgba(203, 191, 164, 0.3);
}

.portal-payments-section h3 {
    color: #cbbfa4;
    font-size: 16px;
    margin-bottom: 8px;
}

.portal-payments-section .section-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.payment-placeholder {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(203, 191, 164, 0.6);
}

/* Tabs para la vista Root Admin */
.admin-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(203, 191, 164, 0.15);
    padding-bottom: 10px;
}

.tab-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.tab-link.active {
    color: #cbbfa4;
    border-bottom: 2px solid #cbbfa4;
}

/* ==========================================================================
   13. MODAL DE COOKIES FULL SCREEN (Prioridad Legal Absoluta)
   ========================================================================== */
/* Capa oscura que bloquea toda la pantalla */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 20, 14, 0.85); /* Fondo verde ultra oscuro con opacidad */
    backdrop-filter: blur(5px); /* Desenfoque estético para el fondo de la web */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Por encima de absolutamente todo */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Cuando se activa, muestra el fondo */
.cookie-modal-overlay.banner-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Tarjeta central grande */
.cookie-modal-card {
    background-color: #112217; /* Tu verde oscuro característico */
    border: 1px solid rgba(203, 191, 164, 0.3);
    border-radius: 16px;
    padding: 45px 40px;
    width: 90%;
    max-width: 620px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Animación de la tarjeta al abrirse */
.cookie-modal-overlay.banner-visible .cookie-modal-card {
    transform: translateY(0);
}

/* Encabezado del modal */
.cookie-modal-header {
    margin-bottom: 25px;
}

.cookie-modal-icon {
    font-size: 42px;
    color: var(--beige-main);
    margin-bottom: 15px;
}

.cookie-modal-header h2 {
    font-family: 'Georgia', serif;
    color: #ffffff;
    font-size: 28px;
    font-weight: normal;
}

/* Cuerpo de texto */
.cookie-modal-text {
    color: rgba(247, 244, 237, 0.85);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.cookie-modal-text a {
    color: var(--beige-main);
    text-decoration: underline;
    font-weight: 500;
}

/* Botones Grandes */
.cookie-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cookie-primary {
    background-color: var(--beige-main);
    color: var(--earth-dark);
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-cookie-primary:hover {
    background-color: var(--beige-dark);
    transform: translateY(-1px);
}

.btn-cookie-secondary {
    background: transparent;
    color: #cbbfa4;
    border: 1px solid rgba(203, 191, 164, 0.4);
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    transition: all 0.2s ease;
}

.btn-cookie-secondary:hover {
    background-color: rgba(203, 191, 164, 0.08);
    color: #ffffff;
    border-color: #cbbfa4;
}

/* Ajustes responsivos */
@media (max-width: 576px) {
    .cookie-modal-card {
        padding: 35px 20px;
    }
    .cookie-modal-header h2 {
        font-size: 22px;
    }
    .cookie-modal-text {
        font-size: 14px;
    }
    .cookie-modal-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-cookie-primary, .btn-cookie-secondary {
        width: 100%;
        max-width: none;
    }
}

/* --- ESTILOS SECCIÓN TRABAJOS REALIZADOS --- */
.portfolio-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-header h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #111111;
    margin-bottom: 12px;
}

.portfolio-header p {
    color: #666666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grilla Responsiva */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tarjetas */
.portfolio-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* Contenedor de Imagen o Preview */
.card-image-wrapper {
    width: 100%;
    height: 220px;
    position: relative;
    background: #172c1e;
}

/* Placeholders de fondo por mientras sacas capturas reales */
.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

/* Colores de fondo de marca provisionales */
.s-bg { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); } /* Azul construcción */
.f-bg { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); } /* Rosado floral */

.tag-category {
    background: rgba(255, 255, 255, 0.9);
    color: #111111;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenido escrito */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 10px;
}

.card-content p {
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Empuja el botón al fondo si los textos miden distinto */
}

/* Botón "Ver Sitio Web" */
.btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #172c1e; /* Azul Apple */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.btn-portfolio:hover {
    color: #172c1e;
    text-decoration: underline;
}