/* =========================================================
   VARIABLES
========================================================= */

:root {

    --black: #111111;
    --espresso: #4A3025;
    --taupe: #8A7B70;
    --bone: #F3EEE6;
    --silver: #C9C9C4;
    --white: #FFFFFF;

    --text: #111111;
    --text-light: #8A7B70;

    --border: #C9C9C4;

    --container: 1200px;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}


img {
    display: block;
    width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: 90%;
    max-width: var(--container);
    margin: auto;
}


.section {
    padding: 100px 0;
}


.eyebrow,
.eyebrow-dark {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}


.eyebrow {
    color: var(--silver);
}


.eyebrow-dark {
    color: var(--espresso);
}


.section-heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}


.section-heading h2,
.shop-heading h2 {
    margin: 12px 0 15px;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    color: var(--black);
}


.section-heading p,
.shop-heading p {
    color: var(--text-light);
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 50px;

    padding: 0 28px;

    border: none;
    border-radius: 2px;

    font-weight: 700;
    font-size: 14px;

    cursor: pointer;

    transition: 0.3s;
}


.btn-primary {
    color: var(--white);
    background: var(--espresso);
}


.btn-primary:hover {
    background: var(--black);
    transform: translateY(-2px);
}


.btn-dark {
    color: var(--white);
    background: var(--black);
}


.btn-dark:hover {
    background: #000000;
    transform: translateY(-2px);
}


.btn-outline {
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.6);
}


.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: var(--black);

    border-bottom: 3px solid var(--espresso);
}


.navbar {
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 70px;
    display: block;
}

.logo span {
    color: var(--espresso);
}


.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}


.nav > a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.nav > a:hover {
    color: var(--silver);
    transform: scale(1.08);
}


.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
}





/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    margin-top: 80px;

    background:
        url("images/hero.jpeg")
        center 30% / cover no-repeat;
}


.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.88),
            rgba(0,0,0,0.40)
        );
}


.hero-content {
    position: relative;
    z-index: 1;

    max-width: 720px;

    color: var(--white);

    margin-left: 12%;
}


.hero h1 {
    max-width: 750px;

    margin: 20px 0;

    font-size: clamp(43px, 6vw, 76px);
    line-height: 1.03;
}


.hero p {
    max-width: 620px;

    margin-bottom: 32px;

    color: #eeeeee;

    font-size: 18px;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
    background: var(--bone);
}


.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 75px;

    align-items: center;
}


.about-image img {
    height: 600px;

    object-fit: cover;
}


.about-content h2 {
    margin: 12px 0 20px;

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.15;

    color: var(--black);
}


.about-content > p {
    margin-bottom: 18px;

    color: var(--text-light);
}


.features {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin: 30px 0;
}


.feature {
    padding: 22px;

    background: var(--white);

    border: 1px solid var(--border);
}


.feature > span {
    color: var(--espresso);

    font-weight: bold;

    font-size: 13px;
}


.feature h3 {
    margin: 6px 0;

    font-size: 16px;
}


.feature p {
    color: var(--text-light);

    font-size: 13px;
}

/* =========================
   CARRUSEL - ACADEMIA
========================= */

.about-carousel {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}


/* FLECHAS */

.carousel-prev,
.carousel-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);

    color: var(--white);

    font-size: 20px;

    cursor: pointer;

    z-index: 2;

    transition: background 0.3s ease;
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.70);
}


/* INDICADORES */

.carousel-dots {
    position: absolute;

    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--white);

    transform: scale(1.2);
}
/* =========================================================
   COURSES
========================================================= */

.courses-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.course-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    transition: 0.3s;
}


.course-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.08);
}


.course-image {
    height: 280px;

    overflow: hidden;
}


.course-image img {
    height: 100%;

    object-fit: cover;
object-position: center 20%;
    transition: 0.5s;
}


.course-card:hover .course-image img {
    transform: scale(1.05);
}


.course-content {
    padding: 27px;
}


.course-content > span {
    color: var(--espresso);

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;

    text-transform: uppercase;
}


.course-content h3 {
    margin: 8px 0;

    font-size: 23px;
}


.course-content p {
    color: var(--text-light);

    font-size: 14px;
}


.course-details {
    display: flex;

    justify-content: space-between;

    margin: 22px 0;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    color: #777;

    font-size: 13px;
}


.text-link {
    color: var(--espresso);

    font-size: 14px;

    font-weight: bold;
}


/* =========================================================
   STATS
========================================================= */

.stats {
    padding: 65px 0;

    color: var(--white);

    background: var(--black);
}


.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    text-align: center;
}


.stat strong {
    display: block;

    margin-bottom: 5px;

    color: var(--silver);

    font-size: 42px;
}


.stat span {
    color: #aaa;

    font-size: 14px;
}



/* =========================================================
   SHOP
========================================================= */

.shop {
    background: var(--white);
}


.shop-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}


.shop-heading > div {
    max-width: 650px;
}


.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}


.product-card {
    border: 1px solid var(--border);

    background: var(--white);
}


.product-image {
    position: relative;

    height: 280px;

    overflow: hidden;

    background: #f6f2ee;
}


.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: 0.4s;
}


.product-card:hover .product-image img {
    transform: scale(1.04);
}


.product-label {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    padding: 6px 10px;

    color: var(--white);
    background: var(--black);

    font-size: 10px;
    font-weight: bold;
}


.product-info {
    padding: 20px;
}


.product-info h3 {
    margin-bottom: 5px;

    font-size: 18px;
}


.product-info p {
    color: var(--text-light);

    font-size: 13px;
}


.product-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 18px;
}


.product-bottom strong {
    color: var(--espresso);

    font-size: 19px;
}




/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials {
    background: var(--bone);
}


.testimonials-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.testimonial {
    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);
}


.stars {
    margin-bottom: 15px;

    color: var(--espresso);

    letter-spacing: 3px;
}


.testimonial p {
    margin-bottom: 20px;

    color: var(--text-light);

    font-style: italic;
}


.testimonial strong {
    font-size: 14px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    position: relative;

    padding: 100px 0;

    text-align: center;

    color: var(--white);

    background:
        linear-gradient(
            rgba(20,20,20,0.82),
            rgba(20,20,20,0.82)
        ),
        url("https://images.unsplash.com/photo-1596462502278-27bfdc403348?auto=format&fit=crop&w=2000&q=90")
        center / cover no-repeat;
}


.cta h2 {
    max-width: 800px;

    margin: 15px auto;

    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.1;
}


.cta p {
    margin-bottom: 28px;

    color: #ddd;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
    align-items: start;
}


.contact-info h2 {
    margin: 12px 0 18px;

    font-size: clamp(34px, 4vw, 48px);

    line-height: 1.15;
}


.contact-info > p {
    margin-bottom: 30px;

    color: var(--text-light);
}


.contact-detail {
    margin-bottom: 20px;
}


.contact-detail strong {
    display: block;

    margin-bottom: 4px;
}


.contact-detail span {
    color: var(--text-light);
}


.contact-form {
    display: grid;

    gap: 9px;
}


.contact-form label {
    margin-top: 5px;

    font-size: 13px;

    font-weight: bold;
}


.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid var(--border);

    outline: none;

    background: var(--white);
}


.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--espresso);
}


.contact-form textarea {
    resize: vertical;
}




/* =========================
   FOOTER
========================= */

.footer {
    background: var(--black);
    color: var(--white);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.footer-brand p {
    margin: 0;
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--white);
}

.footer-column a,
.footer-column span {
    margin-bottom: 12px;
    color: #bdbdbd;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-column a:hover {
    color: var(--espresso);
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.copyright p {
    margin: 0;
    color: #888;
    font-size: 12px;
}

.copyright-links {
    display: flex;
    gap: 20px;
}

.copyright-links a {
    color: #888;
    font-size: 12px;
    text-decoration: none;
    transition: 0.3s ease;
}

.copyright-links a:hover {
    color: var(--espresso);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .courses-grid,
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .stats-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 40px;
    }


    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 768px) {

    .section {
        padding: 70px 0;
    }


    .navbar {
        height: 70px;
    }


    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--white);
    }


    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        gap: 0;
        padding: 10px 5%;

        background: var(--black);

        border-top: 1px solid var(--espresso);

        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }


    .nav.active {
        display: flex;
    }


    .nav > a {
        width: 100%;

        padding: 13px 0;

        border-bottom: 1px solid var(--border);
    }


    .hero {
        min-height: 85vh;

        margin-top: 70px;
    }


    .hero-content {
        margin-left: 0;
        margin-right: 0;

        width: 100%;

        padding: 0 20px;

        box-sizing: border-box;
    }


    .hero h1 {
        font-size: 43px;
    }


    .hero p {
        font-size: 16px;
    }


    .hero-buttons {
        width: 100%;
    }


    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .about-image > img {
    height: 420px;
}


    .courses-grid,
    .teachers-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }


    .products-grid {
        grid-template-columns: 1fr 1fr;
    }


    .shop-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-carousel {
    height: 420px;
}

.carousel-image {
    height: 100%;
}

}

/* =========================================================
   MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }


    .hero h1 {
        font-size: 38px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .hero-buttons .btn {
        width: 100%;
    }


    .features {
        grid-template-columns: 1fr;
    }


    .products-grid {
        grid-template-columns: 1fr;
    }


    .stats-grid {
        grid-template-columns: 1fr;
    }


   
}

/* =========================
   MENSAJE DEL FORMULARIO
========================= */

.form-message {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    background: #f7f4f1;
    border: 1px solid #e5ddd5;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.form-message.success {
    display: block;
}

.form-message.error {
    display: block;
    background: #f8f5f3;
    border-color: #ded5ce;
    color: #555;
}

/* =========================
   MAPAS DE UBICACIÓN
========================= */

.locations {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.location-map h3 {
    margin-bottom: 12px;
    font-size: 18px;
}

.location-map iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: 0;
}

/* =========================================================
   REDES SOCIALES FLOTANTES
========================================================= */

.floating-socials {
    position: fixed;
    right: 25px;
    bottom: 25px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    z-index: 9999;
}


/* BOTÓN */

.floating-social {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--black);
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    text-decoration: none;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ÍCONOS */

.floating-social svg {
    width: 21px;
    height: 21px;

    fill: currentColor;

    display: block;
}


/* EFECTO HOVER */

.floating-social:hover {
    transform: scale(1.1);
    background: var(--espresso);
    color: var(--white);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
}


/* WHATSAPP */

.floating-social.whatsapp {
    width: 56px;
    height: 56px;

    background: #25D366;

    border: none;

    margin-top: 4px;
}

.floating-social.whatsapp:hover {
    background: #20bd5a;
}


/* WHATSAPP MÁS GRANDE */

.floating-social.whatsapp svg {
    width: 29px;
    height: 29px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 768px) {

    .floating-socials {
        right: 16px;
        bottom: 18px;
        gap: 8px;
    }

    .floating-social {
        width: 43px;
        height: 43px;
    }

    .floating-social svg {
        width: 19px;
        height: 19px;
    }

    .floating-social.whatsapp {
        width: 52px;
        height: 52px;
    }

    .floating-social.whatsapp svg {
        width: 27px;
        height: 27px;
    }

}