/* Estilos generales */
:root {
    --color-primary: #1a2e33;
    --color-secondary: #668097;
    --color-accent: #d9faa6;
    --color-background: #d2e7e7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: white;
}

.shadow-lg {
    box-shadow: 0px 3px 16px rgba(0, 0, 0, 0.16);
}

/* Estilos del swiper */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #eeeeee;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #1a2e33;
}

/* Estilos del accordion */
.accordion-content {
    display: none;
}

.accordion-content.show {
    display: block;

}

.accordion.inactive {
    color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    background-color: #FCFCFC;
}

.accordion.active {
    color: #1A2E33;
}

.scale-opacity-animation {
    animation: scale-opacity 0.5s ease forwards;
}

.accordion-content img {
    transform: scale(0);
    opacity: 0;
}

@keyframes scale-opacity {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Estilos para el popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* fondo hero */
.fondo-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: #d2e7e7;
    z-index: -1;
}

@media (min-width: 900px) and (max-width: 3000px) {
    .fondo-hero::before {
        height: 70%;
    }
}

@media (max-width: 1023px) {
    .upgrade-h3::before {
        content: "Upgrade Options";
        display: inline-block;
    }
}

.logo {
    width: 203px;
    height: 32px;
    background-image: url("../logos/zeronet-203x32-inoUy9G.png");
    background-size: contain;
    background-repeat: no-repeat;
}

@media (max-width: 500px) {
    .logo {
        background-image: url("../logos/zeronet-33x32-t_ACX14.png");
        width: 33px;
        height: 32px;
    }
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Language dropdown */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
}

.lang-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 7px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    min-width: 130px;
    transition: border-color 0.2s;
}

.lang-dropdown__toggle:hover {
    border-color: #999;
}

.lang-dropdown__flag {
    border-radius: 2px;
}

.lang-dropdown__label {
    flex: 1;
}

.lang-dropdown__arrow {
    color: #555;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-dropdown__arrow {
    transform: rotate(180deg);
}

.lang-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 100%;
    overflow: hidden;
    z-index: 100;
}

.lang-dropdown.open .lang-dropdown__menu {
    display: block;
}

.lang-dropdown__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.15s;
}

.lang-dropdown__item:hover {
    background: #f3f4f6;
}

.lang-dropdown__item--active {
    background: #f0fdf4;
    font-weight: 500;
}

.lang-dropdown__item img {
    border-radius: 2px;
}

/* Posicionamiento del modal */
.cookie-modal {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 520px;
    width: calc(100% - 3rem);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

/* Contenedor del contenido */
.cookie-box {
    padding: 1.5rem;
    font-size: 0.80rem;
    color: #333;
    position: relative;
}

/* Título */
.cookie-box h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1e3438;
}

/* Botones */
.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.cookie-buttons .btn {
    padding: 0.4rem 1rem;
    font-size: 0.80rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    min-width: 140px;
    flex-grow: 0;
}

/* Versión responsive: botones a bloque completo si pantalla < 590px */
@media (max-width: 590px) {
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons .btn {
        width: 100%;
        white-space: normal; /* permitir salto de línea si es necesario */
        text-align: center;
    }
}

.cookie-buttons .accept {
    background-color: #1e3438;
    color: #fff;
}

.cookie-buttons .accept:hover {
    background-color: #29494c;
}

.cookie-buttons .decline {
    background-color: #f2f2f2;
    color: #333;
}

.cookie-buttons .decline:hover {
    background-color: #e1e1e1;
}

.cookie-buttons .preferences {
    background-color: #e4e4e4;
    color: #333;
}

.cookie-buttons .preferences:hover {
    background-color: #d3d3d3;
}

/* Cierre */
.cookie-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #888;
    cursor: pointer;
}

/* Enlaces */
.cookie-links {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.cookie-links a {
    color: #1e3438;
    text-decoration: underline;
}

.cookie-category {
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.always-active {
    font-size: 0.85rem;
    color: green;
}

/* Switch estilo iOS */
.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .slider {
    background-color: #1e3438;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.cookie-revisit {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
}

.cookie-revisit button {
    background-color: #d2e7e7;
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-revisit button:hover {
    background-color: #bcd6d6;
}

.cookie-revisit img {
    display: block;
    margin: 0 auto;
    width: 24px;
    height: 24px;
    filter: none;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.custom-tooltip {
    position: absolute;
    bottom: 130%;
    left: 0;
    background-color: #1e3438;
    color: white;
    padding: 0.4em 0.75em;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    min-width: max-content;
    max-width: 200px;
    text-align: center;
}


.tooltip-wrapper:hover .custom-tooltip {
    opacity: 1;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 1rem;
    border-width: 5px;
    border-style: solid;
    border-color: #1e3438 transparent transparent transparent;
}

/* ═══ Key Features Section ═══ */

/* Cards */
.kf-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 8px 32px rgba(0,0,0,.08);
}

/* Badges */
.kf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.kf-badge--cyan { background: #d2e7e7; color: #668097; border: 1px solid #b8d4d4; }
.kf-badge--teal { background: #d9faa6; color: #1A2E33; border: 1px solid #c5e894; }
.kf-badge--red  { background: rgba(255,71,87,.1); color: #FF4757; border: 1px solid rgba(255,71,87,.2); }

/* Icons */
.kf-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.kf-icon--cyan { background: linear-gradient(135deg, #d2e7e7, rgba(102,128,151,.08)); }
.kf-icon--teal { background: linear-gradient(135deg, #d9faa6, rgba(26,46,51,.08)); }
.kf-icon--red  { background: linear-gradient(135deg, rgba(255,71,87,.12), rgba(255,159,67,.08)); }

/* Feature lists */
.kf-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.kf-features li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.kf-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.kf-features--cyan li::before { background: #668097; }
.kf-features--teal li::before { background: #1A2E33; }
.kf-features--red  li::before { background: #FF4757; }

/* CTA buttons */
.kf-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.kf-cta--cyan { background: #d2e7e7; color: #668097; }
.kf-cta--cyan:hover { background: #b8d4d4; }
.kf-cta--teal { background: #d9faa6; color: #1A2E33; }
.kf-cta--teal:hover { background: #c5e894; }
.kf-cta--red  { background: rgba(255,71,87,.1); color: #FF4757; }
.kf-cta--red:hover  { background: rgba(255,71,87,.2); }

/* Partner pills */
.kf-partners {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.kf-partner-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
}