/* ===============================
   VARIABLES
=================================*/
:root {
    --primary: #30B36A;
    --accent: #f9844a;
    --dark: #111;
    --light: #f8f9fa;
    --text: #333;
}

/* ===============================
   RESET
=================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding-top: 0px; /* para que el header flotante no tape contenido */
}

/* ===============================
   HEADER FLOTANTE
=================================*/
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;

    background: rgba(48, 179, 106, 0.75);
    backdrop-filter: blur(12px);
    padding: 15px 40px;
    border-radius: 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2000;
    overflow: visible;
}

header h1 {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

/* ===============================
   NAV LINKS
=================================*/
nav {
    display: flex;
    gap: 25px;
    align-items: center;
    z-index: 1500;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: white;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ===============================
   BOTÓN HAMBURGUESA
=================================*/
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 2100;
}

/* ===============================
   HERO SECTION
=================================*/
.hero {
    height: 100vh;
    background: linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.55)
    ),
    url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease forwards;
}

.hero h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===============================
   BUTTON PREMIUM
=================================*/
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: black;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ===============================
   SERVICES SECTION
=================================*/
.services {
    padding: 100px 80px;
    background: white;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 600;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

/* ===============================
   CTA SECTION
=================================*/
.cta {
    background: rgba(48, 179, 106, 0.85);  /* verde header con más opacidad */
    backdrop-filter: blur(15px);           /* efecto flotante/frosted glass */
    color: white;
    padding: 50px 40px;                    /* más espacio interno */
    text-align: center;
    border-radius: 50px;                    /* esquinas súper redondeadas */
    box-shadow: 0 20px 50px rgba(0,0,0,0.25); /* sombra profunda para flotar */
    margin: 20px auto;                      /* espacio superior e inferior */
    max-width: 1100px;                      /* para que no ocupe todo el ancho */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover para que “levite” aún más */
.cta:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===============================
   FOOTER
=================================*/
footer {
        background: rgba(48, 179, 106, 0.75);  /* mismo color que header */
    backdrop-filter: blur(12px);           /* efecto premium flotante */
    color: white;
    padding: 50px 20px;                     /* más espacio vertical */
    text-align: center;
    border-radius: 10px;                    /* opcional, si quieres redondeado */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); /* sombra elegante */
}

/* ===============================
   ANIMATIONS
=================================*/
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   RESPONSIVE MENU
=================================*/
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        background: rgba(48, 179, 106, 0.98);
        backdrop-filter: blur(10px);

        display: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;

        padding: 30px 0;
        border-radius: 30px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);

        z-index: 1500;
        margin: 0;       /* elimina la línea blanca */
        border: none;
    }

    nav.active {
        display: flex;
    }

    nav a {
        font-size: 18px;
    }
}

/* ===============================
  catalogo
=================================*/
.catalog {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: auto;
}

.catalog h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
}

.catalog-wrapper {
    position: relative;
    overflow: hidden;
}

/* Track de items */
.catalog-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s linear;
}

/* Cada item */
.catalog-item {
    flex: 0 0 250px;
    height: 150px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: rgba(48, 179, 106, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.catalog-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .catalog-item {
        flex: 0 0 180px;
        height: 120px;
    }
}

@media screen and (max-width: 480px) {
    .catalog-item {
        flex: 0 0 140px;
        height: 100px;
    }
}


/* ===============================
   video
=================================*/
.video-gallery {
    padding: 60px 20px;
    text-align: center;
    max-width: 1000px;
    margin: auto;
    background: rgba(48, 179, 106, 0.05); /* efecto flotante suave */
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.video-gallery h2 {
    font-size: 36px;
    margin-bottom: 40px;
    font-weight: 600;
    color: #30B36A;
}

/* Contenedor 16:9 */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 30px;
    overflow: hidden;
}

/* Videos */
.gallery-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;    /* se ve completo, sin cortar */
    display: none;          /* solo el activo */
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.gallery-video:hover {
    transform: translateY(-5px); /* efecto flotante al hover */
}

/* Responsive */
@media screen and (max-width: 768px) {
    .video-wrapper {
        padding-top: 56.25%; /* sigue 16:9 */
    }
}

@media screen and (max-width: 480px) {
    .video-wrapper {
        padding-top: 56.25%;
    }
}

/* ===============================
   BOTÓN PLAY DE VIDEO
=================================*/
.video-gallery {
    position: relative;
    text-align: center;
}

.video-gallery .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #30B36A;  /* Verde premium */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.video-gallery .play-btn:hover {
    background: #28a85b; /* Verde más oscuro al pasar mouse */
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/* Ocultar el botón si ya no se necesita (desktop autoplay) */
.video-gallery .play-btn.hidden {
    display: none;
}