/* @import url("https://fonts.googleapis.com/css?family=Roboto:100,300,100italic,300italic"); */

/* roboto-100 - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/roboto/roboto-v51-latin-100.woff2') format('woff2');
}

/* roboto-100italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 100;
    src: url('../fonts/roboto/roboto-v51-latin-100italic.woff2') format('woff2');
}

/* roboto-300 - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/roboto/roboto-v51-latin-300.woff2') format('woff2');
}

/* roboto-300italic - latin */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/roboto/roboto-v51-latin-300italic.woff2') format('woff2');
}

/* roboto-regular - latin */
/* @font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto/roboto-v51-latin-regular.woff2') format('woff2');
} */

/* roboto-600 - latin */
/* @font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/roboto/roboto-v51-latin-600.woff2') format('woff2');
} */

/* roboto-600italic - latin */
/* @font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/roboto/roboto-v51-latin-600italic.woff2') format('woff2');
} */

:root {
    --primary: #1FB1C4;
    --primary-light: #DDF7FA;
    --secondary: #97969C;
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --light: #F2F5F7;
    --text: #24313A;
    --text-light: #5E6A72;
    --border: #E4E8EB;
}

/* ==========================
   RESET
========================== */

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

/* html {
    scroll-behavior: smooth;
} */

body {
    font-family: Roboto, Helvetica, sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
}


/* ==========================
   SCROLL BUTTON
========================== */

.scroll-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-next {
    all: unset;
    cursor: pointer;
    transform: translateY(20px);
    width: 40px;
    height: 60px;
    /* border: 2px solid white;
    border-radius: 25px; */
    display: inline-flex;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-next:hover {
    opacity: 1;
}

.chevrons::before,
.chevrons::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 3px auto;
    animation: bounce 1.5s infinite;
}

.chevrons::after {
    animation-delay: 0.2s;
}

@keyframes bounce {
    0% {
        opacity: 0;
        transform: translateY(-10px) rotate(45deg);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(10px) rotate(45deg);
    }
}

/* ==========================
   HERO
========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, .1),
            rgba(0, 0, 0, .8));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
}

.hero-logo {
    width: 50%;
    height: auto;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary-light);
    font-weight: 500;
}

/* ==========================
   ANIMACIÓN HERO
========================== */

.hero-logo,
.hero-description,
.hero-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.hero.is-loaded .hero-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero.is-loaded .hero-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.hero.is-loaded .hero-scroll {
    opacity: 1;
    transform: translate(0);
    transition-delay: 0.8s;
}

/* ==========================
   SPOTLIGHT
========================== */

.spotlight {
    background: var(--white);
}

.spotlight-item {
    position: relative;
    height: 100vh;
    background-image: var(--bg);
    background-size: cover;
    background-position: center 0px;
}

.spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-content {
    position: absolute;
    width: 35%;
    padding: 6vw;
    height: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
}

.spotlight-left .spotlight-content {
    left: 0;
}

.spotlight-right .spotlight-content {
    right: 0;
}

.spotlight-content h2 {
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 20px;
}

.spotlight-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* ==========================
   FEATURES
========================== */

.features {
    padding: 120px 8%;
    background: var(--light);
}

.section-header {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text);
}

.section-header p {
    color: var(--text-light);
    line-height: 1.8;
}

.features-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 300px));
    justify-content: center;
    gap: 40px;
}

.feature-card {
    aspect-ratio: 1/1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    transition: .3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(31, 177, 196, .15);
}

.feature-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    max-width: 260px;
}

/* ==========================
   ABOUT
========================== */

.about {
    padding: 140px 8%;
    background: linear-gradient(135deg, #1FB1C4 0%, #57C8D5 100%);
}

.about-content {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 25px;
}

.about p {
    color: white;
    line-height: 1.8;
    margin-bottom: 40px;

    opacity: .95;
}

.btn-primary {
    display: inline-block;
    padding: 16px 34px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 100px;
    transition: .3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.about-table {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* cada fila */
.about-row {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
}

.about-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

/* columna izquierda (ocupa todo) */
.about-text {
    flex: 1;
    text-align: start;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.about-text p {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    line-height: 1.6;
}

/* columna derecha (auto ancho) */
.about-action {
    flex: 0 0 auto;
}

/* botón */
.btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    background: white;
    color: var(--primary);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s ease;
    white-space: nowrap;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

/* ==========================
   FOOTER
========================== */

footer {
    padding: 30px;
    text-align: center;
    background: white;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--secondary);
    font-size: .95rem;
}

/* ==========================
   SOMBRAS SECCIONES
========================== */

.hero,
.spotlight,
.spotlight-item {
    position: relative;
    box-shadow: 0 0.25em 0.5em 0 rgba(0, 0, 0, 0.15);
}

.hero {
    z-index: 4;
}

.spotlight {
    z-index: 3;
    box-shadow: none;
}

.spotlight-item:nth-child(1) {
    z-index: 3;
}

.spotlight-item:nth-child(2) {
    z-index: 2;
}

.spotlight-item:nth-child(3) {
    z-index: 1;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:991px) {

    .spotlight-item,
    .reverse {
        flex-direction: column;
    }

    .spotlight-image,
    .spotlight-content {
        width: 100%;
    }

    .spotlight-image {
        height: 50%;
    }

    .spotlight-content {
        height: 50%;
        padding: 40px;
    }

    .spotlight-content h2 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about h2 {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 300px;
        justify-content: center;
    }
}

@media(max-width:768px) {

    .hero-logo {
        width: 180px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .spotlight-content h2 {
        font-size: 2rem;
    }

    .section-header h2,
    .about h2 {
        font-size: 2rem;
    }
}