/* ============================= */
/* RESET GENERAL */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-principal: #00d1b2;
    --color-principal-hover: #009e95;
    --header-bg: #2c5f5f;
    --header-bg-scroll: #1e4a4a;
    --footer-bg: #2c5f5f;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

/* ============================= */
/* HEADER */
/* ============================= */
.topbar {
    background: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: .3s;
}

.topbar.scroll-active {
    background: var(--header-bg-scroll);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.logo img {
    height: 50px;
}

/* ============================= */
/* MENÚ */
/* ============================= */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: .3s;
    font-weight: 500;
}

nav a:hover,
nav a.active-menu {
    color: var(--color-principal);
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

/* ============================= */
/* HERO */
/* ============================= */
.hero {
    height: 500px;
    background: url('../img/img-ad.png') center center/cover no-repeat;
}

.overlay {
    background: rgba(0, 0, 0, .55);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.overlay h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.overlay p {
    font-size: 1.2rem;
    max-width: 700px;
}

.contenido-banner{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #fff;
}

.contenido-banner h1{
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 230px; /* separación con el texto inferior */
    text-shadow: 0 3px 10px rgba(0,0,0,.8);
}

.contenido-banner p{
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
/* ============================= */
/* CAROUSEL */
/* ============================= */
.carousel {
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

.carousel-container {
    position: relative;
}

.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: #000;
    object-position: center;
    display: block;
}

.caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, .8);
}

.caption h2 {
    font-size: 2rem;
}

.caption p {
    font-size: 1rem;
}

/* BOTONES */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: .3s;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.prev:hover,
.next:hover {
    background: rgba(0, 0, 0, .8);
}

/* ============================= */
/* CONTENIDO */
/* ============================= */
.content {
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
}

.content h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-principal);
}

/* ============================= */
/* TARJETAS */
/* ============================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    position: relative;
    height: 320px;
    /* misma altura para todas */
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: .4s;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.card h3,
.card p {
    position: relative;
    z-index: 2;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card:hover {
    transform: translateY(-10px);
}

/* FONDOS TARJETAS */
.productos {
    background: url('../img/img-pro11.png') center center/cover;
    background-size: cover;
    background-position: center center;
}

.genomica {
    background: url('../img/epi.png') center center/cover;
    background-size: cover;
    background-position: center center;
}

.ciencia {
    background: url('../img/img-lab.png') center center/cover;
    background-size: cover;
    background-position: center center;
}

/* ============================= */
/* FORMULARIOS */
/* ============================= */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    outline: none;
}

button {
    background: var(--color-principal);
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    background: var(--color-principal-hover);
}

/* ============================= */
/* IMÁGENES */
/* ============================= */
img {
    max-width: 100%;
    height: auto;
}

/* ============================= */
/* BOTÓN SUBIR */
/* ============================= */
#topBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    background: var(--color-principal);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

#topBtn:hover {
    background: var(--color-principal-hover);
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
    background: var(--footer-bg);
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

/* ============================= */
/* ANIMACIONES */
/* ============================= */
.animar {
    opacity: 0;
    transform: translateY(50px);
    transition: .6s;
}

.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================= */
/* REDES SOCIALES */
/* ============================= */
.social-bar {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.social-bar a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    text-decoration: none;
    transition: .3s;
}

.social-bar a:hover {
    background: rgba(0, 209, 178, .9);
    transform: scale(1.1);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media(max-width:768px) {
    .topbar {
        padding: 15px 20px;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        text-align: center;
        z-index: 999;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 300px;
    }

    .overlay h1 {
        font-size: 2rem;
    }

    .overlay p {
        font-size: 1rem;
    }

    .slide img {
        height: 250px;
    }

    .caption {
        left: 20px;
        bottom: 20px;
    }

    .caption h2 {
        font-size: 1.3rem;
    }

    .caption p {
        font-size: .9rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .social-bar {
        right: 10px;
    }

    .social-bar a {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

.btn-maquila-home {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 35px;
    background: #00d1b2;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(0, 209, 178, .3);
}

.btn-maquila-home:hover {
    background: #009e95;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 209, 178, .5);
}

/* ============================= QUIERO GENERAR MI MARCA ============================= */
.mi-marca {
    background: #0d1b2a;
    color: #fff;
    padding: 80px 10%;
    text-align: center;
}

.mi-marca h2 {
    font-size: 2.5rem;
    color: #00d1b2;
    margin-bottom: 25px;
}

.mi-marca p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mi-marca h3 {
    margin-top: 30px;
    color: #00d1b2;
}

.mi-marca ul {
    list-style: none;
    margin: 25px 0;
}

.mi-marca ul li {
    margin: 12px 0;
    font-size: 1.05rem;
}

.btn-marca {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    background: #00d1b2;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: .3s;
}

.btn-marca:hover {
    background: #009e86;
}