/* css/styles.css */

:root {
    --brand-color: #9E4632;
    --bg-color: #050505;
    --surface-color: #111111;
    --text-main: #ffffff;
    --text-secondary: #aaaaaa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --rock-filter: brightness(0.4) contrast(1.1);

    /* Gradientes Planes */
    --plan-lito: #9E4632;
    --plan-strato: linear-gradient(135deg, #1B5E20, #4CAF50, #81C784);
    --plan-magma: linear-gradient(135deg, #4A0E17, #8B0000, #B22222, #D23636);
    --plan-students: linear-gradient(135deg, #004D40, #0277BD, #26A69A);
    --plan-corporate: linear-gradient(135deg, #F57F17, #FFB300, #FFCA28);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f8f9fa;
        --surface-color: #ffffff;
        --text-main: #1a1a1a;
        --text-secondary: #555555;
        --glass-bg: rgba(0, 0, 0, 0.03);
        --glass-border: rgba(0, 0, 0, 0.08);
        --rock-filter: invert(0.9) brightness(1.2) contrast(0.8);
    }
    
    .bento-icon-img {
        filter: invert(0) opacity(0.75);
    }
}

html {
    scroll-padding-top: 130px; 
    scroll-behavior: smooth; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main);
    margin: 0; padding: 0;
    font-family: 'Lexend', sans-serif;
    overflow-x: hidden;
}

/* ========================================== */
/* --- NAV Y ESTILOS GLOBALES --- */
/* ========================================== */

nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px; display: flex;
    justify-content: space-between; align-items: center; padding: 0 5%;
    box-sizing: border-box; background: var(--glass-bg); backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); z-index: 1000;
    flex-wrap: nowrap;
    -webkit-transform: translateZ(0); transform: translateZ(0);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { height: 48px; width: auto; }
.brand-text { font-family: 'Lexend', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }
.brand-outcrop { color: var(--brand-color); } .brand-360 { color: var(--text-main); }
.nav-menu { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 30px; flex-shrink: 0; margin-left: auto; }

.nav-links { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 30px; white-space: nowrap; flex-shrink: 0; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--brand-color); }
.nav-actions { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 20px; white-space: nowrap; flex-shrink: 0; }

/* --- LANGUAGE GLOBE DROPDOWN --- */
.lang-dropdown { position: relative; display: flex; align-items: center; margin-left: 30px; margin-right: 0; z-index: 1005; order: 3; }
.globe-icon { cursor: pointer; color: var(--text-secondary); transition: color 0.3s ease; padding: 5px; display: flex; align-items: center; }
.globe-icon:hover { color: var(--text-main); }
.lang-menu {
    position: absolute; top: 100%; right: 0; min-width: 120px;
    background: var(--surface-color); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 5px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease;
}
.lang-dropdown:hover .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
    display: block; padding: 8px 15px; color: var(--text-secondary);
    font-size: 0.9rem; text-decoration: none; transition: background 0.3s, color 0.3s; text-align: left;
}
.lang-menu a:hover { background: rgba(255,255,255,0.05); color: var(--brand-color); }

@media (max-width: 768px) {
    .lang-dropdown { order: 0; margin-left: auto; margin-right: 20px; }
}

.hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 21px; cursor: pointer; z-index: 1001;
}
.hamburger span { width: 100%; height: 3px; background-color: var(--text-main); border-radius: 3px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.cta-button { 
    background-color: var(--brand-color); 
    color: white; 
    padding: 15px 30px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s; 
    font-family: inherit; 
    font-size: 1rem; 
}
.cta-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(158, 70, 50, 0.3); 
}

.floating-cta {
    position: fixed;
    bottom: 50px;
    right: 30px;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    font-size: 1.1rem;
    padding: 18px 40px;
    animation: floatingPulse 2s infinite ease-in-out;
    transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
}
.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
}


@keyframes floatingPulse {
    0% { transform: scale(1); box-shadow: 0 5px 20px rgba(158, 70, 50, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 15px 30px rgba(158, 70, 50, 0.7); }
    100% { transform: scale(1); box-shadow: 0 5px 20px rgba(158, 70, 50, 0.4); }
}

@keyframes fadeInRock { to { opacity: 1; } }

/* ========================================== */
/* --- HERO SECTION COMÚN (HOME Y PLANES) --- */
/* ========================================== */

.hero-section, .plans-hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px; /* Compensa el Nav */
}

/* Reducimos la altura del hero en planes */
.plans-hero {
    min-height: 60vh;
    padding-top: 120px;
    padding-bottom: 50px;
}

/* La roca se limita estrictamente a estos headers */
.hero-section .bg-rock, .plans-hero .bg-rock {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background-image: url('../assets/images/bg_resources_rock.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; 
    filter: var(--rock-filter);
    animation: fadeInRock 2s ease-in-out forwards;
    opacity: 0;
    display: block !important;
}

.hero-container, .plans-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* --- CONTENIDO HERO HOME --- */
.hero-content { flex: 1; padding-right: 50px; display: flex; flex-direction: column; align-items: flex-start; }

#animated-logo-container { width: 320px; height: 320px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.animated-logo-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }

@keyframes levitatePiece { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.levitate-1 { animation: levitatePiece 4s ease-in-out infinite; }
.levitate-2 { animation: levitatePiece 3.2s ease-in-out infinite; animation-delay: 0.5s; }
.levitate-3 { animation: levitatePiece 4.5s ease-in-out infinite; animation-delay: 1.2s; }
.levitate-4 { animation: levitatePiece 3.8s ease-in-out infinite; animation-delay: 0.8s; }

.hero-pre-title { font-size: 0.9rem; font-weight: 700; color: var(--brand-color); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0 0 20px 0; color: var(--text-main); line-height: 1.1; }
.hero-content h1 span, .about-hero-tagline span { color: var(--brand-color); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-secondary); margin: 0 0 40px 0; max-width: 500px; line-height: 1.6; }

.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; width: 100%; }
.phone-mockup { width: 320px; max-width: 80vw; aspect-ratio: 9 / 19.5; background: var(--surface-color); border-radius: 45px; box-shadow: 0 0 0 8px #111, 0 25px 50px rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.app-screenshot { width: 100%; height: 100%; object-fit: cover; display: block; }


/* ========================================== */
/* --- CARACTERÍSTICAS ALTERNADAS (HOME) --- */
/* ========================================== */

.alternating-features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    color: var(--brand-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Misma tipografía del hero-subtitle */
.feature-text p, .feature-bullets li {
    font-size: clamp(1rem, 2vw, 1.1rem); 
    color: var(--text-secondary); 
    line-height: 1.6;
}

.feature-bullets {
    padding-left: 20px;
    margin-top: 15px;
}

.feature-bullets li {
    margin-bottom: 12px;
}

.feature-text .footnote {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 20px;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-img {
    width: 100%;
    max-width: 300px;
    border-radius: 45px;
    display: block;
    box-shadow: 0 0 0 8px #111, 0 25px 50px rgba(0,0,0,0.6);
}

.feature-bullets li.feat-group-header {
    list-style: none;
    margin-left: -8px;
    margin-top: 18px;
    margin-bottom: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand-color);
    padding-bottom: 5px;
    border-bottom: 1px solid var(--glass-border);
}

.feature-bullets li.feat-group-header:first-child {
    margin-top: 6px;
}

/* Precision Tools Suite — cropped screenshots grid */
.crops-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.crop-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.crop-item.crop-item--left  { margin-right: 28px; }
.crop-item.crop-item--right { margin-left: 28px; }

.crop-img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    display: block;
}

.crop-item:nth-child(1) .crop-img { object-position: center top; }
.crop-item:nth-child(2) .crop-img { object-position: center 30%; }
.crop-item:nth-child(3) .crop-img { object-position: center 55%; }

@media (max-width: 768px) {
    .crop-item.crop-item--left,
    .crop-item.crop-item--right { margin-left: 0; margin-right: 0; }
    .crop-img { height: 120px; }
}

/* ============================================ */
/* --- PRECISION TOOLS SUITE — card section --- */
/* ============================================ */
.pt-section {
    margin: 40px 0 60px;
    padding-top: 52px;
    border-top: 1px solid var(--glass-border);
}

.pt-section-header {
    text-align: center;
    margin-bottom: 44px;
}

.pt-section-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    margin: 0;
}

.pt-group {
    margin-bottom: 36px;
}

.pt-group--last {
    margin-bottom: 0;
}

.pt-groups-row {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.pt-groups-row .pt-group {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.pt-groups-row .pt-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    flex: 1;
    align-items: stretch;
}

@media (max-width: 1000px) {
    .pt-groups-row { flex-direction: column; gap: 36px; }
    .pt-groups-row .pt-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

.pt-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand-color);
    margin: 0 0 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--glass-border);
}

.pt-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pt-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 22px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.2s;
}

.pt-card:hover {
    border-color: rgba(158, 70, 50, 0.45);
    transform: translateY(-2px);
}

.pt-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(158, 70, 50, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.pt-card-icon .bento-icon-svg {
    width: 22px;
    height: 22px;
}

.pt-card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--brand-color);
}

.pt-card-body {
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 16px;
    overflow: hidden;
}

.pt-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.pt-card-desc {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.62;
    margin: 0;
}

.pt-card-img {
    margin-left: -22px;
    margin-right: -22px;
    flex-shrink: 0;
}

.pt-crop-img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
}

@media (max-width: 1000px) {
    .pt-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .pt-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .pt-crop-img { height: 200px; }
}

.feat-subtitle {
    color: var(--brand-color);
    font-weight: 600;
}

/* ========================================== */
/* --- BENTO BOX (HERRAMIENTAS PRECISIÓN) --- */
/* ========================================== */

.bento-section { 
    padding: 100px 5%; 
    max-width: 1200px; 
    margin: 0 auto; 
    text-align: center; 
}

.section-title { 
    font-size: clamp(2rem, 4vw, 2.5rem); 
    margin-bottom: 50px; 
    color: var(--text-main); 
}

.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
}

.bento-card { 
    background: var(--surface-color); 
    border: 1px solid var(--glass-border); 
    border-radius: 12px; 
    padding: 30px; 
    text-align: left; 
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; 
}

.bento-card:hover { 
    transform: translateY(-5px); 
    border-color: rgba(158,70,50,0.45); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.bento-icon-container {
    width: 45px;
    height: 45px;
    background: rgba(158, 70, 50, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon-svg {
    width: 24px;
    height: 24px;
    background-color: var(--brand-color);
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.bento-card h3 { 
    font-size: 1.2rem; 
    color: var(--brand-color); 
    margin: 0 0 10px 0; 
}

.bento-card p { 
    font-size: 0.95rem; 
    color: var(--text-secondary); 
    line-height: 1.5; 
    margin: 0; 
    font-family: 'Montserrat', sans-serif;
}

/* ========================================== */
/* --- CONTENIDO HERO PLANES --- */
/* ========================================== */

.plans-hero .hero-content {
    max-width: 550px;
    text-align: left;
}

.scattered-visual {
    position: relative;
    width: 600px;
    height: 500px;
    z-index: 2;
}

.scattered-logo {
    position: absolute;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    object-fit: contain;
}

.scattered-logo.logo-1 { top: 0%; right: 5%; width: 220px; transform: rotate(-15deg); }  
.scattered-logo.logo-2 { 
    top: 35%; right: 40%; width: 270px; aspect-ratio: 1; transform: rotate(10deg); z-index: 3;
    background-image: var(--plan-magma);
    -webkit-mask-image: url('../assets/images/magma_logo.png');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('../assets/images/magma_logo.png');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}
.scattered-logo.logo-3 { top: 60%; right: 0%; width: 140px; transform: rotate(-5deg); }    
.scattered-logo.logo-4 { top: 10%; right: 65%; width: 160px; transform: rotate(20deg); opacity: 0.9; } 
.scattered-logo.logo-5 { top: 75%; right: 45%; width: 200px; transform: rotate(-25deg); }  

/* ========================================== */
/* --- SECCIÓN PLANES (TABLAS Y CARTAS) --- */
/* ========================================== */

.plans-section {
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
    padding: 80px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 3px; 
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover { transform: translateY(-10px); }

.plan-card.lito { background: var(--plan-lito); }
.plan-card.strato { background: var(--plan-strato); }
.plan-card.magma { background: var(--plan-magma); transform: scale(1.05); z-index: 2; box-shadow: 0 15px 30px rgba(156, 39, 176, 0.2); }
.plan-card.magma:hover { transform: scale(1.05) translateY(-10px); }
.plan-card.students { background: var(--plan-students); }
.plan-card.corporate { background: var(--plan-corporate); }

.plan-card-inner {
    background: var(--surface-color);
    border-radius: 17px;
    padding: 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.plan-badge {
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--plan-magma); color: white;
    padding: 5px 15px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.plan-name {
    font-size: 1.8rem; font-weight: 700; margin-bottom: 10px;
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.plan-card.lito .plan-name { background-image: linear-gradient(to right, #9E4632, #9E4632); }
.plan-card.strato .plan-name { background-image: var(--plan-strato); }
.plan-card.magma .plan-name { background-image: var(--plan-magma); }
.plan-card.students .plan-name { background-image: var(--plan-students); }
.plan-card.corporate .plan-name { background-image: var(--plan-corporate); }

.plan-price { font-size: 1.2rem; color: var(--text-main); font-weight: 600; margin-bottom: 20px; }
.plan-price span { font-size: 0.8rem; color: var(--text-secondary); font-weight: 400; }

.plan-features-short { text-align: left; margin-bottom: 30px; flex-grow: 1; }
.plan-features-short p { font-size: 0.9rem; color: var(--text-secondary); margin: 10px 0; display: flex; align-items: flex-start; gap: 10px; }

.plan-btn {
    display: block; width: 100%; padding: 12px 0; border-radius: 50px;
    text-decoration: none; font-weight: 600; color: white; transition: opacity 0.3s;
}
.plan-btn:hover { opacity: 0.9; }

.plan-btn.lito { background: var(--plan-lito); }
.plan-btn.strato { background: var(--plan-strato); }
.plan-btn.magma { background: var(--plan-magma); }
.plan-btn.students { background: var(--plan-students); }
.plan-btn.corporate { background: var(--plan-corporate); }

.plans-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .plans-grid--3 { grid-template-columns: 1fr; } }

.special-plans-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.special-plans-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    margin: 0 0 20px 0;
}

.special-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.special-plan-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.25s;
}

.special-plan-card:hover { 
    border-color: rgba(158,70,50,0.45); 
}

.special-plan-card-icon {
    width: 36px;
    height: 36px;
    color: var(--brand-color);
    flex-shrink: 0;
    margin-bottom: 4px;
}

.special-plan-card h3 { font-size: 1rem; font-weight: 600; color: var(--text-main); margin: 0; }
.special-plan-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin: 0; flex-grow: 1; }

.special-plan-btn {
    display: inline-flex;
    align-self: center;
    align-items: center;
    gap: 5px;
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 4px;
    transition: opacity 0.2s;
    word-break: break-all;
}
.special-plan-btn:hover { opacity: 0.78; }

.plan-tier {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin: -10px 0 14px 0;
}

.plan-includes-note {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-color);
    margin: 0 0 8px 0;
    padding-left: 0;
    list-style: none;
}

.compare-action { margin-top: 60px; }

.btn-toggle-matrix {
    background: transparent; border: 1px solid var(--text-secondary); color: var(--text-main);
    padding: 12px 30px; border-radius: 50px; font-size: 1rem; font-family: inherit; cursor: pointer; transition: all 0.3s;
}
.btn-toggle-matrix:hover { border-color: var(--brand-color); color: var(--brand-color); }

.matrix-container { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); opacity: 0; margin-top: 40px; }
.matrix-container.expanded { max-height: 5000px; opacity: 1; transition: max-height 1s ease-in-out, opacity 0.5s ease-in-out; }

.matrix-table { table-layout: fixed; width: 100%; border-collapse: collapse; text-align: center; font-size: 0.9rem; color: var(--text-main); }
.matrix-table th { position: sticky; top: 70px; background: var(--bg-color); padding: 15px; font-weight: 700; z-index: 10; border-bottom: 2px solid var(--glass-border); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.matrix-table td { padding: 15px; border-bottom: 1px solid var(--glass-border); }
.matrix-table th:first-child, .matrix-table td:first-child { text-align: left; font-weight: 500; color: var(--text-secondary); width: 25%; }
.matrix-table th:not(:first-child) { width: 25%; }
.matrix-table tr.category-row td { background: var(--glass-bg); text-align: left; font-weight: 700; color: var(--brand-color); padding-top: 30px; padding-bottom: 10px; border-bottom: none; letter-spacing: 1px; }

.matrix-logo {
    display: block;
    margin: 0 auto 5px auto;
    width: 30px; 
    height: 30px;
}
.matrix-logo.lito {
    background-image: linear-gradient(to right, #9E4632, #9E4632);
    -webkit-mask-image: url('../assets/images/lito_logo.png');
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
    mask-image: url('../assets/images/lito_logo.png');
    mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
.matrix-logo.magma {
    background-image: var(--plan-magma);
    -webkit-mask-image: url('../assets/images/magma_logo.png');
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
    mask-image: url('../assets/images/magma_logo.png');
    mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
.matrix-logo.strato {
    background-image: var(--plan-strato);
    -webkit-mask-image: url('../assets/images/strato_logo.png');
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center;
    mask-image: url('../assets/images/strato_logo.png');
    mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}

.icon-check { font-weight: 900; }
.plan-card.lito .icon-check, .matrix-table td:nth-child(2) .icon-check { background-image: linear-gradient(to right, #9E4632, #9E4632); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.plan-card.magma .icon-check, .matrix-table td:nth-child(3) .icon-check { background-image: var(--plan-magma); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.plan-card.strato .icon-check, .matrix-table td:nth-child(4) .icon-check { background-image: var(--plan-strato); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-cross { color: #555555; opacity: 0.5; }

/* ========================================== */
/* --- MODAL WAITLIST --- */
/* ========================================== */

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 2000;
    display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-content {
    background: var(--surface-color); padding: 40px; border-radius: 20px; width: 90%; max-width: 450px;
    position: relative; transform: translateY(20px); transition: transform 0.3s ease; border: 1px solid var(--glass-border); box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; color: var(--text-secondary); cursor: pointer; transition: color 0.2s; line-height: 1; }
.modal-close:hover { color: var(--brand-color); }

.modal-header h3 { margin: 0 0 10px 0; color: var(--text-main); font-size: 1.5rem; }
.modal-header p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }

.modal-form { display: flex; flex-direction: column; gap: 15px; }

.modal-input {
    width: 100%; padding: 14px 15px; border-radius: 10px; border: 1px solid var(--glass-border);
    background: var(--bg-color); color: var(--text-main); font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: border-color 0.3s;
}
.modal-input:focus { outline: none; border-color: var(--brand-color); }

.modal-btn {
    background: var(--brand-color); color: white; border: none; padding: 15px; border-radius: 50px;
    font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; margin-top: 10px; width: 100%;
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(158, 70, 50, 0.3); }

/* ========================================== */
/* --- FOOTER --- */
/* ========================================== */

footer { background: var(--surface-color); padding: 50px 5% 20px; border-top: 1px solid var(--glass-border); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; max-width: 1200px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 20px; }
.footer-logo-img { height: 48px; width: auto; }
.footer-brand { font-family: 'Lexend', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--brand-color); }
.footer-brand .brand-360 { color: var(--text-main); }

.footer-links { display: flex; flex-wrap: wrap; gap: 50px; }
.footer-column { display: flex; flex-direction: column; gap: 10px; margin-right: 20px; }
.footer-column h4 { font-size: 1rem; color: var(--text-main); margin: 0 0 10px 0; }
.footer-column a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-column a:hover { color: var(--brand-color); }

.social-icons { display: flex; gap: 12px; margin-top: 5px; flex-wrap: wrap; max-width: 200px; }
.social-icons a { color: var(--text-secondary); width: 22px; height: 22px; display: inline-block; transition: color 0.3s, transform 0.3s; }
.social-icons a:hover { color: var(--brand-color); transform: translateY(-3px); }
.social-icons svg { width: 100%; height: 100%; }

.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 20px; margin-top: 50px; text-align: center; color: var(--text-secondary); font-size: 0.8rem; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.footer-tiny-icon { height: 14px; width: auto; vertical-align: middle; margin-right: 6px; opacity: 0.8; }



/* --- DROPDOWN NAV --- */
.dropdown { position: relative; }
.dropdown-trigger { cursor: pointer; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; padding: 10px 0; }
.dropdown-trigger:hover, .dropdown:hover .dropdown-trigger { color: var(--text-main); }
.dropdown-trigger::after { content: " ▼"; font-size: 0.6em; opacity: 0.6; }

.dropdown-content {
    position: absolute; top: 100%; left: 0; min-width: 180px;
    background: var(--surface-color); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 10px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 100;
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-content a {
    display: block; padding: 10px 20px; color: var(--text-secondary);
    font-size: 0.9rem; transition: background 0.3s, color 0.3s;
}
.dropdown-content a:hover { background: rgba(255,255,255,0.05); color: var(--brand-color); }

@media (max-width: 768px) {
    .dropdown { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .dropdown-content {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: transparent; padding: 10px 0 0 0;
        min-width: 100%; text-align: center; border-radius: 0;
    }
    .dropdown-content a { padding: 8px 0; }
}

/* ========================================== */
/* --- MEDIA QUERIES GENERALES --- */
/* ========================================== */

@media (max-width: 900px) {
    .matrix-table { display: block; overflow-x: auto; white-space: nowrap; }
    .plan-card.magma { transform: none; }
    .plan-card.magma:hover { transform: translateY(-10px); }
    .plans-hero { padding-top: 100px; }
    .plans-hero-container { flex-direction: column; text-align: center; }
    .plans-hero .hero-content { text-align: center; margin-bottom: 40px; max-width: 100%; }
    .scattered-visual { width: 100%; height: 450px; } 
    .scattered-logo.logo-1 { top: 0%; right: 5%; width: 130px; }
    .scattered-logo.logo-2 { top: 35%; right: 35%; width: 170px; }
    .scattered-logo.logo-3 { top: 60%; right: 5%; width: 90px; }
    .scattered-logo.logo-4 { top: 10%; right: 65%; width: 100px; }
    .scattered-logo.logo-5 { top: 70%; right: 55%; width: 120px; }
}

@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; padding-top: 90px; }
    #animated-logo-container { width: 260px; height: 260px; margin-bottom: 10px; }
    .hero-content { padding-right: 0; margin-bottom: 40px; align-items: center; }

    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 250px; height: 100vh;
        background: var(--surface-color); flex-direction: column; justify-content: flex-start;
        transition: right 0.3s ease; padding: 100px 20px 50px 20px; gap: 40px; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        border-left: 1px solid var(--glass-border);
    }
    .nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; align-items: center; gap: 20px; }
    .nav-actions { flex-direction: column; align-items: center; gap: 20px; }
    .hamburger { display: flex; }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: left; 
        gap: 40px;
    }

    .footer-content { flex-direction: column; text-align: left; }
    .footer-links { flex-direction: column; gap: 30px; }
    .social-icons { max-width: 100%; }
}

/* ========================================== */
/* --- PÁGINAS LEGALES (Términos / Privacidad) --- */
/* ========================================== */

body.force-light {
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
}
body.force-light .bg-rock { display: none !important; }


.legal-layout { display: flex; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 140px 5% 80px; align-items: flex-start; overflow: visible; position: relative; z-index: 0; }
.legal-sidebar { flex: 0 0 280px; width: 280px; position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; }
.legal-sidebar::-webkit-scrollbar { display: none; }
.legal-sidebar nav { position: relative; display: flex; flex-direction: column; width: 100%; height: auto; padding: 0; background: transparent; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: flex-start; }
.legal-sidebar a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; padding: 12px 0; border-bottom: 1px solid var(--glass-border); transition: color 0.2s; line-height: 1.4; }
.legal-sidebar a:hover { color: var(--brand-color); }
.legal-content-main { flex: 1 1 0; min-width: 0; color: var(--text-main); }
.legal-content-main h1 { color: var(--text-main); font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; margin-bottom: 10px; line-height: 1.2; }
.legal-content-main .last-updated { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 40px; }
.legal-content-main h1 + p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 40px; }
.legal-content-main h2 { color: var(--text-main); font-size: 1.5rem; margin-top: 100px; margin-bottom: 20px; }
.legal-content-main h3 { color: var(--text-main); font-size: 1.1rem; margin-top: 30px; margin-bottom: 10px; }
.legal-content-main p, .legal-content-main ul { color: var(--text-secondary); line-height: 1.8; margin-bottom: 15px; font-size: 1rem; }
.legal-content-main ul { padding-left: 20px; }
.legal-content-main li { margin-bottom: 10px; }
.legal-content-main a { color: var(--brand-color); text-decoration: none; }
.legal-content-main a:hover { text-decoration: underline; }

html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }


@media (max-width: 768px) {
    .legal-layout { flex-direction: column; padding-top: 100px; gap: 40px; }
    .legal-sidebar { width: 100%; flex: none; position: static; max-height: none; }
    .legal-content-main h1 { font-size: 2rem; margin-top: 10px; }
    .legal-content-main h2 { margin-top: 50px; }
}

/* ========================================== */
/* --- NAV DOWNLOAD CTA --- */
/* ========================================== */

.nav-cta-btn { padding: 10px 22px !important; font-size: 0.88rem !important; }

/* ========================================== */
/* --- GOOGLE PLAY BADGE --- */
/* ========================================== */

.official-gplay-link {
    display: inline-block;
    transition: transform 0.2s;
}
.official-gplay-link:hover {
    transform: translateY(-3px) scale(1.02);
}
.official-gplay-badge {
    height: auto;
    width: 180px;
}

.dl-platform-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 22px 0 40px 0;
    opacity: 0.7;
}

.dl-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    text-align: left;
}

.dl-feature {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.dl-feature:hover {
    border-color: rgba(158,70,50,0.45); 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dl-feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(158, 70, 50, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    font-size: 1.4rem;
}
.dl-feature p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.dl-plan-note {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.dl-plan-note p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* ========================================== */
/* --- HOME DOWNLOAD SECTION --- */
/* ========================================== */

.home-download-section {
    background: var(--surface-color);
    border-top: 1px solid var(--glass-border);
    padding: 80px 5%;
    text-align: center;
}

.home-download-inner { max-width: 600px; margin: 0 auto; }

.home-download-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px 0;
}

.home-download-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px 0;
}

.home-download-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 35px 0;
    letter-spacing: 0.5px;
}

/* ========================================== */
/* --- ABOUT US --- */
/* ========================================== */

.about-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 5% 100px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.about-hero .bg-rock {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    background-image: url('../assets/images/bg_resources_rock.webp');
    background-size: cover;
    background-position: center;
    filter: var(--rock-filter);
    animation: fadeInRock 2s ease-in-out forwards;
    opacity: 0;
    display: block !important;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.about-hero-tagline {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0;
}

.about-section { padding: 80px 0; box-sizing: border-box; }

.about-section--alt {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.about-inner--narrow { max-width: 820px; }

.about-section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--brand-color);
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.about-section-intro {
    font-size: clamp(1rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0 0 20px 0;
}

.about-section-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.75;
    line-height: 1.6;
    margin-top: 20px;
    font-style: italic;
}

.about-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
}

.about-statement {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 30px 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 35px;
}

.audience-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 26px;
    transition: transform 0.3s, border-color 0.3s;
}

.audience-card:hover { transform: translateY(-4px); border-color: var(--brand-color); }

.audience-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-color);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.audience-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.about-feature-list { padding-left: 22px; margin: 20px 0 0 0; }

.about-feature-list li {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 12px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 35px;
}

.value-card {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover { transform: translateY(-4px); border-color: var(--brand-color); }

.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0 0 12px 0; }
.value-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
    gap: 28px;
    margin-top: 35px;
}

.team-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-border);
    margin: 0 auto 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-name { font-size: 1.05rem; font-weight: 600; color: var(--text-main); margin: 0 0 5px 0; }
.team-role { font-size: 0.8rem; color: var(--brand-color); font-weight: 600; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.team-bio { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.company-meta { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.company-meta p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; }
.company-meta span { font-weight: 600; color: var(--text-main); margin-right: 10px; }
.company-meta a { color: var(--brand-color); text-decoration: none; }
.company-meta a:hover { text-decoration: underline; }

.about-roadmap-label { font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin: 28px 0 14px 0; }
.about-roadmap-list { padding-left: 22px; margin: 0 0 28px 0; }
.about-roadmap-list li { font-size: 1rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 10px; }

.about-cta-section { background: var(--brand-color); padding: 90px 0; }
.about-cta-section .about-inner { text-align: center; }

.about-cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: white; margin: 0 0 15px 0; font-weight: 700; line-height: 1.2; }
.about-cta-sub { font-size: 1.05rem; color: rgba(255,255,255,0.85); margin: 0 0 35px 0; line-height: 1.6; }

.about-cta-btn { background: white !important; color: var(--brand-color) !important; display: inline-block; margin-bottom: 28px; }
.about-cta-btn:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important; }

.about-cta-corp { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin: 0; }
.about-cta-corp a { color: white; font-weight: 600; text-decoration: none; }
.about-cta-corp a:hover { text-decoration: underline; }

.about-placeholder {
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
}

.about-placeholder p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; font-style: italic; }

@media (max-width: 768px) {
    .about-section { padding: 60px 0; }
    .about-hero { padding: 130px 5% 80px; min-height: 35vh; }
    .audience-grid, .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .about-cta-section { padding: 70px 0; }
    .about-placeholder { padding: 35px 20px; }
}
