:root {
    --primary: #4a6741;
    /* Verde oscuro LiberaLuz */
    --primary-hover: #3a5233;
    --accent: #b5e000;
    /* Verde lima eléctrico del rayo */
    --accent-hover: #9dc400;
    --secondary: #eef5e0;
    --bg: #FFFFFF;
    --bg-alt: #f5f8f2;
    --text: #1e2d1c;
    --text-muted: #5a6e57;
    --border: #d4e0cf;
    --success: #4a6741;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(74, 103, 65, 0.10);
}

.hidden {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.main-header {
    background-color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(74, 103, 65, 0.12);
    border-bottom: 1px solid var(--border);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
    height: 72px;
    /* Logo define la altura del header */
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-bg {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
    /* Verde lima del rayo */
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo-text-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: var(--transition);
    z-index: 200;
}

.hamburger:hover {
    background: var(--secondary);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.25s ease;
}

/* X animation when open */
.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn-nav {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-nav:hover {
    color: var(--primary-hover);
}

.btn-private {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-private:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 150;
        /* Hidden by default */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.is-open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-links .btn-nav {
        font-size: 20px;
        font-weight: 700;
        padding: 8px 0;
    }

    .nav-links .btn-private {
        font-size: 16px;
        padding: 12px 28px;
        border-radius: 12px;
    }

    .nav-links #userProfile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* Hero Section */
.hero {
    padding: 60px 0 60px;
    background: #ffffff;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding: 60px 0;
    }
}

.hero-content {
    max-width: 540px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    color: var(--text);
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

@media (max-width: 992px) {
    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Hero Dropzone Column Placement */
.hero-dropzone-column {
    display: flex;
    flex-direction: column;
    margin-top: -60px;
    /* Adjusted down slightly as it's taller now */
    width: 100%;
}

.dropzone-section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.dropzone-section-header h2 {
    margin-bottom: 0 !important;
}

@media (max-width: 992px) {
    .hero-dropzone-column {
        margin-top: 40px;
        /* Revert on mobile where things are vertical */
    }
}

/* Dropzone (Redesigned for the new layout) */
.dropzone-wrapper {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.dropzone-container {
    background: var(--bg-alt);
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 85px 50px;
    /* Increased further */
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    /* Added min-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.dropzone-container:hover,
.dropzone-container.dragover {
    border-color: var(--primary);
    background: var(--secondary);
    transform: scale(1.02);
}

.icon-upload {
    color: var(--primary);
    margin-bottom: 24px;
}

.icon-upload svg {
    width: 64px;
    /* Increased icon size */
    height: 64px;
}

.dropzone-content h3 {
    font-size: 24px;
    /* More prominent */
    margin-bottom: 12px;
    color: var(--text);
}

.dropzone-content p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Scanner */
.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 10;
}

.scanner-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.laser-line {
    width: 90%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    position: absolute;
    top: 0;
    animation: scan 2s infinite alternate ease-in-out;
}

.status-messages {
    z-index: 11;
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    margin-top: 40px;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--secondary);
}

/* Premium Secondary Buttons Styled Specifically */
/* No custom overrides for learnMoreBtn and choosePathBtn; they now share the btn-primary btn-utilizar style */

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start; /* Start from top to allow scrolling */
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    overflow-y: auto; /* Allow overlay to scroll */
    padding: 40px 0;  /* Spacing around the content when it's longer than screen */
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 24px;   /* Slightly smoother corners */
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: auto;          /* Centering magic with flex-start parent */
}

.modal-content h2 {
    margin-bottom: 24px;   /* Increased spacing */
    color: var(--primary);
    font-size: 28px;        /* More prominent */
    font-weight: 800;
}

.modal-content--wide {
    max-width: 800px;       /* Wider for legal documents */
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: rotate(90deg);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;         /* More space on mobile */
    }
}


.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(181, 224, 0, 0.2);
}

/* Dashboard */
.dashboard {
    padding: 80px 0;
    background: var(--bg-alt);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 60px;
}

.total-savings {
    font-size: 64px;
    font-weight: 800;
    color: var(--success);
    margin: 16px 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.card-tag {
    background: var(--secondary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.card-savings {
    font-size: 32px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 24px;
}



/* ── Descarga la factura de tu compañía ── */
.tarifas-disponibles {
    background: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.tarifas-header {
    margin-bottom: 48px;
}

.tarifas-header h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.tarifas-header h3 span {
    color: var(--primary);
}

.tarifas-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    align-items: center;
}

.tarifas-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    height: 100px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.tarifas-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.tarifas-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: saturate(0.8) opacity(0.8);
    transition: var(--transition);
}

.tarifas-item:hover img {
    filter: saturate(1) opacity(1);
}


/* History Items */
.history-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.history-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.history-info h4 {
    margin-bottom: 4px;
    font-size: 16px;
}

.history-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.history-savings {
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

/* Delete Button in history */
.btn-delete {
    background: transparent;
    border: none;
    color: var(--danger, #ff4d4d);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: scale(1.1);
}

/* Generic Message Modal Styles */
#messageModal h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

#messageText {
    font-size: 1.05rem;
    line-height: 1.6;
}

#messageModal .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
}

.btn-text:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Cómo Funciona Section ── */
.como-funciona {
    padding: 100px 0;
    background: var(--bg-alt);
}

.cf-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.cf-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
}

.cf-header h2 span {
    color: var(--primary);
}

.cf-header p {
    font-size: 17px;
    color: var(--text-muted);
}

.cf-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .cf-grid {
        grid-template-columns: 1fr;
    }

    .cf-header h2 {
        font-size: 28px;
    }
}

.cf-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cf-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.cf-card--featured {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.cf-card--featured h3,
.cf-card--featured p,
.cf-card--featured span {
    color: white !important;
}

.cf-card--featured .cf-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.cf-card--featured .cf-advantage {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.cf-card--featured .cf-badge-advantage {
    background: var(--accent);
    color: var(--text);
}

.cf-card-num {
    font-size: 56px;
    font-weight: 900;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -3px;
    transition: var(--transition);
}

.cf-card--featured .cf-card-num {
    color: rgba(255, 255, 255, 0.2);
}

.cf-card:hover .cf-card-num {
    color: var(--secondary);
}

.btn-utilizar {
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-utilizar:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Ensure the button stands out on the featured card */
.cf-card--featured .btn-utilizar {
    background: white !important;
    color: var(--primary) !important;
    border: none;
}

.cf-card--featured .btn-utilizar:hover {
    background: var(--accent) !important;
    color: var(--text) !important;
}


.cf-card-body {
    flex: 1;
}

.cf-card-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.cf-card-badge--dark {
    background: var(--accent);
    color: var(--text);
}

.cf-card-body h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
}

.cf-card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.cf-detail {
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cf-label {
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cf-advantage {
    font-size: 13px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.cf-badge-advantage {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Diferenciador */
.cf-differentiator {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.cf-differentiator h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.cf-differentiator>p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 36px;
}

.cf-formula-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 8px;
}

.cf-formula {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 28px;
    min-width: 200px;
    text-align: center;
}

.cf-formula-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.cf-formula-eq {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .cf-differentiator {
        padding: 28px 20px;
    }

    .cf-formula-grid {
        flex-direction: column;
        align-items: center;
    }

    .cf-formula {
        width: 100%;
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}



.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    color: var(--primary);
    background: linear-gradient(135deg, var(--secondary) 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(74, 103, 65, 0.08);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-feature:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(74, 103, 65, 0.2);
}

.about-feature h4 {
    font-size: 17px;
    margin-bottom: 6px;
}

.about-feature p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-closing {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.about-closing h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.about-closing p {
    font-size: 15px;
    margin-bottom: 12px;
}

.about-image {
    position: relative;
    height: 400px;
    background: var(--bg-alt);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    border: 1px solid var(--border);
}

.stats-card.secondary {
    top: 50%;
    left: 45%;
    background: var(--primary);
    color: white;
}

.stats-card .stats-number {
    font-size: 36px;
    font-weight: 800;
    display: block;
}

.stats-card.secondary .stats-number {
    color: white;
}

.stats-card .stats-label {
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 300px;
        order: -1;
    }
}

.btn-user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    transition: var(--transition);
}

.btn-user-profile:hover {
    background: var(--border);
    transform: scale(1.05);
}

.process-steps {
    text-align: left;
    margin-top: 30px;
    display: grid;
    gap: 24px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h4 {
    margin-bottom: 4px;
    color: var(--text);
}

.step-info p {
    font-size: 14px;
    color: var(--text-muted);
}

/* DataDis Connector */
.datadis-connector {
    padding: 60px 0;
    background: white;
}

.premium-card {
    border: 1px solid var(--border);
    transition: var(--transition);
}

.datadis-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.datadis-logo img {
    height: 48px;
    width: auto;
}

.datadis-info h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 4px;
}

.datadis-info p {
    font-size: 15px;
    color: var(--text-muted);
}

.datadis-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.dd-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--secondary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
}

.loader-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 103, 65, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.datadis-grid {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.datadis-grid h4 {
    margin-bottom: 20px;
    color: var(--text);
}

.grid-table-wrapper {
    overflow-x: auto;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.grid-table th,
.grid-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.grid-table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-table td {
    font-size: 15px;
}

/* Celebration Modal Styling */
.celebration-content {
    text-align: center;
    padding: 40px !important;
    max-width: 450px !important;
}

.celebration-icon {
    font-size: 64px;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    display: inline-block;
    animation: iconBounce 1s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes iconBounce {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2) rotate(5deg);
    }
}

.celebration-body {
    margin: 20px 0;
}

.celebration-email-box {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed var(--secondary);
    margin-top: 24px;
}

.celebration-email-box p {
    font-size: 15px;
    color: var(--text);
    margin: 0;
}

/* CUPS Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-item {
    padding: 12px;
    background: var(--bg-alt);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* ── Contacto Section ── */
.contacto {
    padding: 120px 0;
    background: var(--primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contacto-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.contacto-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(181, 224, 0, 0.4));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(181, 224, 0, 0.8));
    }
}

.contacto-inner h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.15;
}

.contacto-inner h2 span {
    color: var(--accent);
}

.contacto-lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 16px;
}

.contacto-lead strong {
    color: var(--accent);
    font-weight: 700;
}

.contacto-disclaimer {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
    font-style: italic;
}

.contacto-cta-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 36px 40px;
    backdrop-filter: blur(8px);
}

.contacto-email-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contacto-emoji {
    font-size: 40px;
    flex-shrink: 0;
}

.contacto-email-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-align: left;
}

.contacto-email-link {
    display: inline-block;
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.contacto-email-link:hover {
    color: white;
    text-shadow: 0 0 24px rgba(181, 224, 0, 0.6);
    transform: scale(1.03);
}

.contacto-promise {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .contacto-inner h2 {
        font-size: 28px;
    }

    .contacto-email-link {
        font-size: 20px;
    }

    .contacto-cta-block {
        padding: 24px 20px;
    }

    .contacto-email-box {
        flex-direction: column;
        gap: 10px;
    }

    .contacto-email-label {
        text-align: center;
    }
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.site-footer {
    font-size: 14px;
    position: relative;
}

/* Separador decorativo tipo "ola" encima del footer */
.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent) 30%,
            var(--primary) 70%,
            transparent 100%);
}

/* Zona principal */
.footer-main {
    background: linear-gradient(160deg, #1c2e1a 0%, #2a4227 50%, #1a2e18 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
}

/* Textura decorativa de fondo */
.footer-main::after {
    content: '⚡';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 300px;
    opacity: 0.03;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* ── Columna 1: Marca ── */
.footer-brand .footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Logo en color real sobre el fondo verde oscuro */
    filter: brightness(1.15) saturate(0.9);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 270px;
}

/* Badge "servicio independiente" */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(181, 224, 0, 0.12);
    border: 1px solid rgba(181, 224, 0, 0.25);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: var(--accent);
    color: var(--text);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(181, 224, 0, 0.25);
}

/* ── Columnas genéricas ── */
.footer-col-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(181, 224, 0, 0.2);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links li a::before {
    content: '›';
    color: var(--accent);
    font-size: 16px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: white;
    padding-left: 2px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ── Columna Contacto ── */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.5;
}

.footer-contact-list li svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.footer-contact-list li a:hover {
    color: var(--accent);
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text);
    font-weight: 800;
    font-size: 13px;
    padding: 11px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
}

.footer-cta-btn:hover {
    background: #c8f000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(181, 224, 0, 0.35);
}

/* ── Barra inferior legal ── */
.footer-bottom {
    background: #111d10;
    padding: 22px 0;
    border-top: 1px solid rgba(181, 224, 0, 0.08);
}

.footer-bottom-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px 32px;
    flex-wrap: wrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    white-space: nowrap;
}

.footer-copyright strong {
    color: var(--accent);
    font-weight: 700;
}

.footer-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.65;
    text-align: center;
}

.footer-disclaimer strong {
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 12px;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

/* ── Responsive Footer ── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 0 40px;
    }

    .footer-brand .footer-logo {
        grid-column: span 2;
    }

    .footer-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .footer-main {
        padding: 48px 0 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 1;
        display: block;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
}

/* ── Custom Dropzone Header (Requested Change) ── */
.hero-dropzone-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}

@media (max-width: 992px) {
    .hero-dropzone-column {
        margin: 40px auto 0;
        max-width: 100%;
    }
}

/* ── Hero Feature Text ── */
.hero-feature-text {
    position: relative;
    max-width: 500px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    margin-top: 48px;
}

.hero-feature-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-feature-text p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Team Section Styles ── */
.team {
    padding: 100px 0;
    background: var(--bg-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.team-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.team-card-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-card-image img {
    transform: scale(1.05);
}

.team-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-role {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.team-tagline {
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.team-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex: 1;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-skills span {
    font-size: 11px;
    font-weight: 700;
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lumen Modal Styles */
.modal-content--wide {
    max-width: 800px;
    padding: 40px;
}

.lumen-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.lumen-avatar-mini {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
}

.lumen-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lumen-intro {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.lumen-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.lumen-card {
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.lumen-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.lumen-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lumen-card-icon {
    font-size: 24px;
}

.lumen-card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

.lumen-card-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.lumen-tooltip {
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    padding: 12px;
    border-radius: 0 12px 12px 0;
    font-size: 13px;
    font-style: italic;
    color: var(--text);
}

.lumen-extra-info {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: grid;
    gap: 24px;
    text-align: left;
}

.info-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.info-text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .lumen-sections {
        grid-template-columns: 1fr;
    }

    .modal-content--wide {
        padding: 24px;
    }

    .lumen-header {
        flex-direction: column;
        text-align: center;
    }
}

.dropzone-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
    gap: 16px;
}

.dropzone-alt-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: right;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
    align-items: left;
}

@media (max-width: 600px) {
    .dropzone-section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* Manual Modal Styles */
.selector-tabs {
    display: flex;
    background: var(--bg-alt);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    border: 1px solid var(--border);
}

.tab-item {
    cursor: pointer;
    position: relative;
}

.tab-item input {
    position: absolute;
    opacity: 0;
}

.tab-item span {
    display: block;
    padding: 10px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.tab-item input:checked+span {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Manual Modal Redesign: List Layout */
.manual-list {
    display: flex;
    flex-direction: column;
}

.manual-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.manual-list-item:last-child {
    border-bottom: none;
}

.manual-label-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.manual-label-group .main-label {
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
}

.manual-label-group .unit-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.manual-list-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
}

.manual-label-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: 140px;
    flex-shrink: 0;
}

.manual-inputs-group {
    display: flex;
    gap: 16px;
}

.manual-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.manual-tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manual-small-input {
    width: 100px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-alt);
    transition: all 0.2s ease;
}

.manual-energy-input {
    width: 110px;
}


.manual-small-input:focus {
    background: white;
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 1000;
    background: var(--bg-alt);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-modal:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .manual-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .manual-inputs-group {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── FAQ Section ── */
.faq {
    padding: 80px 0;
    background: #ffffff;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.faq-item {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}
.faq-item p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ═══════════════ TIPS SECTION (SEO & BLOG) ═══════════════ */
.tips-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(181, 224, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.tip-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 224, 207, 0.5);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(74, 103, 65, 0.05);
}

.tip-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(74, 103, 65, 0.12);
}

.tip-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    align-self: flex-start;
}

.tip-tag--accent {
    background: var(--secondary);
    color: var(--primary);
}

.tip-tag--solar {
    background: #fff9db;
    color: #f59f00;
}

.tip-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.3;
}

.tip-card p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.tip-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tip-card:hover .tip-link {
    gap: 12px;
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .tips-section {
        padding: 60px 0;
    }
    
    .tip-card {
        padding: 30px;
    }
}

/* ═══════════════ TEASER CALCULATOR ═══════════════ */
.teaser-calculator {
    padding: 60px 0;
    background: #f8faf9;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.teaser-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.teaser-text {
    flex: 1;
}

.teaser-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text);
}

.teaser-text p {
    font-size: 18px;
    color: var(--text-muted);
}

.teaser-interactive {
    flex: 1;
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(86, 171, 47, 0.2);
}

.slider-wrapper {
    margin-bottom: 30px;
}

.slider-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.teaser-savings {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: #e0e0e0;
    outline: none;
}
.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}
.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .teaser-container {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }
}

/* ═══════════════ TRANSPARENCY TABLE ═══════════════ */
.transparency-section {
    padding: 80px 0;
    background: #ffffff;
}

.transparency-table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.transparency-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: #fff;
    text-align: left;
}

.transparency-table th, .transparency-table td {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.transparency-table th {
    font-weight: 800;
    font-size: 18px;
    background: #f8faf9;
    color: var(--text);
}

.col-liberaluz {
    background: rgba(181, 224, 0, 0.05);
    color: var(--primary);
    font-weight: 700;
    width: 30%;
}

.col-otros {
    color: var(--text-muted);
    width: 40%;
}

.transparency-table tr:hover td {
    background: #fafafa;
}
.transparency-table tr:hover td.col-liberaluz {
    background: rgba(181, 224, 0, 0.1);
}

/* ═══════════════ LEGAL MODAL BODY ═══════════════ */
.legal-body {
    text-align: left;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 8px;
}

.legal-body h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.legal-body h3:first-child {
    margin-top: 0;
}

.legal-body p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.legal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 16px 20px;
}

.legal-body ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-muted);
}

.legal-body ul li:last-child {
    border-bottom: none;
}

.legal-body ul li strong {
    color: var(--text);
}

.legal-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-body a:hover {
    text-decoration: underline;
}

.legal-body .legal-update {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
}

/* Scrollbar styling for legal modals */
.legal-body::-webkit-scrollbar {
    width: 6px;
}
.legal-body::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 10px;
}
.legal-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
.legal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Lumen body (generic, used by píldoras modals too) */
.lumen-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    text-align: left;
}

.lumen-body p {
    margin-bottom: 16px;
}

.lumen-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.lumen-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .lumen-row {
        grid-template-columns: 1fr;
    }
    .legal-body {
        max-height: none;   /* Disable internal scroll, use modal scroll */
        padding-right: 0;
    }
}