:root {

    --kirvia-purple: #8907CF;
    /* El color principal  */
    --kirvia-orange: #F29E03;
    /* Acentos y atención  */
    --kirvia-green: #06AD2F;
    /* Éxito y selección  */
    --kirvia-red: #CD0606;
    /* Solo para alertas  */
    --kirvia-dark: #1F2D1A;
    /* Texto y contrastes [cite: 25] */
    --kirvia-bg: #FAFAFA;
    /* Fondo suave [cite: 24] */

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--kirvia-dark);
    background: var(--kirvia-bg);
    scroll-behavior: smooth;
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Contenedor principal de la derecha */
.header-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Aquí controlas la separación entre idiomas y botón */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--kirvia-dark);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--kirvia-purple);
}

/* SECCIONES REUTILIZABLES */
.section-padding {
    padding: 80px 8%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.bg-white {
    background-color: var(--white);
}

/* BOTONES */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--kirvia-purple);
    color: white;
}

.btn-secondary {
    border: 2px solid var(--kirvia-dark);
    color: var(--kirvia-dark);
}

.btn-light {
    background: var(--white);
    color: var(--kirvia-dark);
}

.btn-submit {
    background-color: var(--kirvia-green);
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: #058f27;
    /* Un tono más oscuro para el hover */
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #fff 0%, #f0f0ff 100%);
    padding: 60px 8% 100px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

/* HERO VIDEO STYLE */
.hero-video {
    width: 100%;
    max-width: none; /* occupy full container width */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}
.hero-video:hover {
    transform: scale(1.02);
}

/* Wrapper to ensure video spans edge‑to‑edge of hero section */
.hero-video-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* left‑aligned button */
    gap: 10px;
    padding: 0 8%; /* match hero container horizontal padding */
    box-sizing: border-box;
}

/* Demo button positioned below video, left‑aligned */
.hero-demo-btn {
    margin-left: 0;
    align-self: flex-start;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-text {
        text-align: center;
    }
    .hero-video-wrapper {
        padding: 0 5%;
    }
    .hero-demo-btn {
        width: 100%;
        text-align: center;
    }
}


.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* VENTAJAS */
.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.benefit-card.purple {
    border-top: 5px solid var(--kirvia-purple);
}

.benefit-card.orange {
    border-top: 5px solid var(--kirvia-orange);
}

.benefit-card.red {
    border-top: 5px solid var(--red-main);
}
.benefit-card.green {
    border-top: 5px solid var(--kirvia-green);
}

/* FEATURES */
.feature-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

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

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 10px;
}

.badge {
    background: #eee;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.copy {
    font-size: 0.8rem;
    color: #aaa;
}

/* Asegura que el selector se vea bien */
.lang-selector {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 15px;
    font-family: inherit;
    cursor: pointer;
}

/* Contenedor de idiomas */
.lang-switcher {
    display: flex;
    gap: 10px;
    border-right: 1px solid #ddd;
    /* Una línea sutil para separar visualmente */
    padding-right: 20px;
}

.lang-switcher a {
    font-size: 0.75rem;
    /* Más pequeño para que parezca secundario */
    color: #888;
    /* Color grisáceo, menos llamativo */
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--kirvia-purple);
    /* #8907CF [cite: 23] */
}

.lang-switcher a img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    display: block;
}

.btn-nav {
    background-color: var(--kirvia-purple);
    /* #06AD2F  */
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(6, 173, 47, 0.2);
}

.btn-nav:hover {
    background-color: var(--kirvia-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 173, 47, 0.3);
}

@media (max-width: 768px) {
    /* Header – stack logo, navigation and actions vertically */
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5%;
    }
    .logo img {
        height: 30px; /* reduce logo size on mobile */
    }
    nav {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }
    nav a {
        margin: 0;
        font-size: 0.9rem;
    }
    .header-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    /* language selector positioned top‑right on mobile */
    .lang-switcher {
        position: absolute;
        top: 12px;
        right: 12px;
        margin: 0;
    }
    .btn-nav {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    /* Hero – stack content vertically and centre */
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-video-wrapper {
        padding: 0 5%;
    }
    .hero-demo-btn {
        width: 100%;
        margin-top: 15px;
    }
    .hero-btns {
        justify-content: center;
    }
    .header-actions {
        gap: 15px; /* keep small gap for other elements */
    }
    .lang-switcher {
        border-right: none;
        padding-right: 0;
    }
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.6);
    color: white;
}