/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    color: #1e293b;
    background: #f1f5f9;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.header {
    background: linear-gradient(145deg, #0f766e 0%, #115e59 45%, #134e4a 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.header-inner {
    position: relative;
    text-align: center;
    max-width: 720px;
}

.header-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.header h1 {
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    margin-bottom: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    opacity: 0.92;
    max-width: 540px;
    margin: 0 auto;
}

/* Main */
.main-content {
    min-height: calc(100vh - 180px);
}

.page-main {
    padding: 2.5rem 1.25rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

section {
    background: #fff;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.section-head {
    margin-bottom: 1.5rem;
}

section h2 {
    color: #0f766e;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.section-lead {
    color: #64748b;
    font-size: 0.95rem;
}

/* Intro */
.intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.75rem;
    align-items: start;
}

.intro-copy p {
    font-size: 1.02rem;
    color: #475569;
    margin-bottom: 1rem;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

.intro-highlight {
    background: linear-gradient(160deg, #f0fdfa 0%, #ecfdf5 100%);
    border: 1px solid #99f6e4;
    border-radius: 12px;
    padding: 1.35rem 1.25rem;
}

.highlight-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 0.85rem;
}

.intro-highlight ul {
    list-style: none;
}

.intro-highlight li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.35rem;
    color: #334155;
    font-size: 0.95rem;
}

.intro-highlight li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14b8a6;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    padding: 1.5rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.1);
    border-color: #99f6e4;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-card p {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Steps */
.steps-list {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.steps-list li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.1rem 1.1rem 1.1rem 3.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #0f766e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-list li strong {
    color: #0f172a;
    font-size: 1rem;
}

/* Benefits */
.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.benefits-list li {
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #334155;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 10px;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0f766e;
    font-size: 1rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0.5rem;
}

.footer-inner p {
    margin: 0.25rem 0;
    font-size: 0.88rem;
}

.footer-inner p:first-child {
    color: #f1f5f9;
    font-weight: 500;
}

/* Modal de Cookies (legado) */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.cookie-spinner {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #0f766e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cookie-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 30px 20px 40px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    max-height: 50vh;
    z-index: 10002;
}

.cookie-content h2 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.cookie-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.btn {
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 48%;
    min-height: 50px;
}

.btn-accept {
    background: #0f766e;
    color: white;
}

.btn-accept:hover {
    background: #115e59;
}

.btn-reject {
    background: #64748b;
    color: white;
}

.btn-reject:hover {
    background: #475569;
}

/* Responsivo */
@media (max-width: 768px) {
    .header {
        padding: 3rem 0 2.75rem;
    }

    section {
        padding: 1.5rem 1.25rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .steps-list li {
        padding-left: 3.25rem;
    }
}

@media (max-width: 480px) {
    .page-main {
        padding: 1.25rem 0.75rem 2rem;
    }

    .cookie-content {
        padding: 20px 10px 30px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
}
