:root {
    --headerYfooter: linear-gradient(90deg, #00a3e0, #002b5c);
    --primary: #002b5c;
    --secondary: #00a3e0;
    --accent: #0fd4ff;
    --bg: #f0f7ff;
    --text: #111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--headerYfooter);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.menu-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0px;
    height: 70px;
}

.logo .imagen-logo {
    width: 55px;
    height: auto;
    max-width: min-content;
    object-fit: contain;
    display: block;
    margin: 0;
    gap: 0px;
    height: 70px;
}

.logo .imagen-letras {
    width: 200px;
    height: auto;
    max-width: min-content;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

/* SUB HEADER */
.sub-header{
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--accent);
    padding: 10px 0;
    z-index: 900;
    transition: transform 0.25s ease;
    transform: translateY(0);
}

.sub-header.hidden {
    transform: translateY(-100%);
}

.sub-header .sub-toggle {
    display: none;
}

.sub-nav ul{
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.sub-nav a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.sub-nav a:hover{
    color: white;
}

/* MAIN */

main {
    flex: 1;
    margin-top: 120px; /* header (70px) + sub-header (approx 50px) */
    margin-bottom: 100px;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide {
    min-height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    padding: 20px 0;
}

.slide p {
    text-align: center;
    margin: 0;
}

.nuestros-productos:link, .nuestros-productos:visited {
    color: var(--accent);
    text-decoration: underline;
}

/* CARRUSEL */
.carrusel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrusel-container {
    display: flex;
    overflow: hidden;
    width: 600px;
    gap: 20px;
}

.prod {
    min-width: 200px;
    height: 150px;
    background: rgba(0, 163, 224, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--primary);
    font-weight: bold;
}

/* FOOTER */

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--headerYfooter);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    margin-top: 4px;
}

.footer-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.footer-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.footer-info .redes {
    display: flex;
    justify-content: center;
}

.footer-info i{
    display: block;
    font-size: 10.5px;
    line-height: 1.2;
    margin: 2px 0;
}

.fb-icon {
    font-size: 22px;
    color: white;
    position: relative;
}

.footer-info .correo:link, .footer-info .ubicacion:link, .footer-info .correo:visited, .footer-info .ubicacion:visited {
    color: var(--bg);
    text-decoration: underline;
}

.footer-info .correo:hover, .footer-info .ubicacion:hover {
    color: var(--primary);
    text-decoration: underline;
}

.fb-icon {
    font-size: 30px;
    color: white;
    position: relative;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    /* Header */
    header {
        padding: 0 16px;
        flex-wrap: wrap;
        height: auto;
        min-height: 70px;
    }

    .logo .imagen-letras {
        width: 140px;
    }

    /* Menú hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 6px;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.open {
        max-height: 300px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Main */
    main {
        margin-top: 70px;
        margin-bottom: 140px;
    }

    /* Slide */
    .slide {
        padding: 20px;
        text-align: center;
    }

    .slide h1 {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .slide h3 {
        font-size: 1rem;
        margin-top: 10px;
    }

    /* Footer */
    footer {
        padding: 12px 16px;
    }

    .footer-info {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        width: 100%;
        padding: 0 8px;
    }

    .footer-info div {
        width: 100%;
    }

    .footer-info i {
        display: block;
        margin: 4px 0;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    footer {
        transform: translateY(100%);
        transition: transform 0.2s ease;
    }

    footer.show-footer {
        transform: translateY(0);
    }

    .sub-header .sub-toggle {
        display: block;
        width: 100%;
        color: white;
        background: transparent;
        border: none;
        text-align: center;
        padding: 8px 0;
        font-weight: 600;
        cursor: pointer;
    }

    .sub-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .sub-nav.open {
        max-height: 220px;
    }

    .sub-nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 8px;
    }

    .sub-nav a {
        display: block;
        text-align: center;
    }
}

@media (min-width: 769px) {
    footer {
        transform: translateY(0);
    }

    .sub-header .sub-toggle {
        display: none;
    }

    .sub-nav {
        max-height: none;
        overflow: visible;
    }
}