/* ==========================================================================
   Volumik Landing Page - Estilos Autocontenidos Puros
   Garantiza un renderizado visual perfecto e instantáneo en todos los navegadores
   sin depender de scripts o CDNs externos.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #080b11;
    color: #e2e8f0;
}

body.volumik-page {
    background-color: #080b11;
    color: #e2e8f0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding: 1.5rem 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080b11;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* --- Layout Principal --- */
.volumik-header {
    max-width: 56rem;
    margin: 0 auto 2rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.volumik-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    font-size: 1.15rem;
    color: #ffffff;
    text-decoration: none !important;
}

.volumik-brand-text {
    background: linear-gradient(90deg, #ff8c42, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
}

.volumik-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.75rem;
    color: #a5b4fc !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.volumik-back-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff !important;
}

.volumik-container {
    max-width: 56rem;
    margin: 0 auto;
    background: #0d121e;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* --- Hero Section --- */
.volumik-hero {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #2e1065 100%);
    padding: 3.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.volumik-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 9999px;
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.volumik-logo-img {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 1.5rem auto;
    border-radius: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.volumik-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .volumik-title {
        font-size: 3.25rem;
    }
}

.volumik-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 40rem;
    margin: 0 auto 2rem auto;
    font-weight: 300;
    line-height: 1.7;
}

.volumik-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .volumik-actions {
        flex-direction: row;
    }
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 0.85rem;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-playstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.6);
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.85rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.18);
}

.volumik-features-bar {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

/* --- Cuerpo del Contenido --- */
.volumik-content {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

@media (min-width: 768px) {
    .volumik-content {
        padding: 3.5rem 3rem;
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon-box {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
}

/* --- Widget Calculadora Demo --- */
.demo-calculator-card {
    background: #04060a;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    scroll-margin-top: 2rem;
}

.demo-top-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
}

@media (min-width: 640px) {
    .demo-top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.unit-selector {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #0f172a;
    padding: 0.35rem;
    border-radius: 0.75rem;
    border: 1px solid #1e293b;
}

.unit-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-btn.active {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

.shape-tabs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .shape-tabs-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.shape-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 0.85rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shape-tab i {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.shape-tab span {
    font-size: 0.75rem;
    font-weight: 700;
}

.shape-tab.active {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: #6366f1 !important;
    color: #c7d2fe !important;
}

.demo-panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 768px) {
    .demo-panel-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-inputs-form {
    background: #0f172a;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-field-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 0.6rem 0.8rem;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-wrapper input:focus {
    border-color: #6366f1;
}

.input-unit-tag {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #64748b;
}

.demo-results-panel {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.result-box {
    background: rgba(2, 6, 23, 0.8);
    padding: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #1e293b;
    margin-bottom: 0.75rem;
}

.result-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.result-value-vol {
    font-size: 1.65rem;
    font-weight: 900;
    color: #34d399;
}

.result-value-area {
    font-size: 1.65rem;
    font-weight: 900;
    color: #a5b4fc;
}

.formula-box {
    background: rgba(2, 6, 23, 0.9);
    padding: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #1e293b;
    font-size: 0.75rem;
}

.formula-box code {
    color: #fde047;
    font-family: 'Fira Code', monospace;
    display: block;
    margin-top: 0.25rem;
}

/* --- Grillas e Informacion --- */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.four-col-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .four-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .four-col-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

.step-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.25rem;
}

.step-number {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.4);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.usecase-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
}

.usecase-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Tabla Comparativa --- */
.table-responsive {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid #1e293b;
    background: #0f172a;
}

.volumik-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.volumik-table th {
    background: #1e1b4b;
    color: #c7d2fe;
    font-weight: 800;
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
}

.volumik-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.volumik-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.txt-highlight {
    color: #34d399;
    font-weight: 800;
}

.txt-danger {
    color: #f87171;
}

.txt-warn {
    color: #fbbf24;
}

/* --- Accordions FAQ --- */
.faq-item {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item summary {
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.faq-item p {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #31104b 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 1.5rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.cta-banner h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: #c7d2fe;
    font-size: 0.95rem;
    max-width: 32rem;
    margin: 0 auto 1.5rem auto;
}

/* --- Footer --- */
.volumik-footer {
    background: #020617;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #64748b;
    border-top: 1px solid #1e293b;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.social-icon:hover {
    background: #ff6b35;
    color: #ffffff;
    border-color: #ff6b35;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-nav a {
    color: #94a3b8;
    text-decoration: none !important;
    font-weight: 600;
}

.footer-nav a:hover {
    color: #ffffff;
}
