﻿:root {
    --manhattan: #F6CE98;
    --jaffa: #ED733F;
    --tamarillo: #A81926;
    --cloudburst: #1E294C;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: #d6d4d4;
    color: var(--cloudburst);
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    height: 100px;
    background-color: var(--cloudburst);
    font-family: 'Cairo', sans-serif;
    color: white;
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.bar {
    font-family: 'Cairo', sans-serif;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 1rem;
}

    .logo-container img {
        height: 200px;
        max-width: 100%;
        object-fit: contain;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
        transition: transform 0.3s ease;
    }

.logo-subtext {
    margin-top: -4px;
    font-size: 0.9rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: var(--manhattan);
    letter-spacing: 0.5px;
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.3s;
}

    nav a:hover {
        color: var(--jaffa);
    }

section {
    padding: 4rem 2rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero h1,
.hero p,
.hero button {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.btn-primary {
    margin-top: 1rem;
    background-color: var(--tamarillo);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: var(--cloudburst);
    }

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--cloudburst);
    text-align: center;
}

p {
    font-family: sans-serif;
}

/* ===== EFECTO DESTACADO ===== */
.highlighted {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .highlighted.pulse {
        animation: pulseGlow 1s ease-in-out infinite alternate;
    }

@keyframes pulseGlow {
    from {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }

    to {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(255, 215, 0, 1);
    }
}
/* NAVBAR - Desktop */
nav {
    display: flex;
    align-items: center;
}

/* Botón hamburguesa oculto en desktop */
/* Esconder checkbox */
#menu-toggle {
    display: none;
}

/* Botón hamburguesa solo en móvil */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
}

/* Nav default */
nav {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 100px;
        right: 0;
        background-color: #1E294C;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .menu-icon {
        display: block;
    }

    /* Abrir menu cuando checkbox está checked */
    #menu-toggle:checked + .menu-icon + nav {
        max-height: 500px;
    }

    nav a {
        padding: 1rem;
        text-align: center;
        display: block;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}
/* ===== MARCAS ===== */
.marcas-section {
    background-color: inherit;
    padding: 4rem 2rem;
    text-align: center;
}

    .marcas-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--cloudburst);
    }

/* Contenedor flexible */
.marcas-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* separación entre logos */
}

/* Cada logo */
.marca-logo {
    flex: 1 1 20%; /* cada logo ocupa 20% mínimo del ancho */
    max-width: 12rem; /* límite máximo */
    text-align: center;
}

    .marca-logo img {
        width: 100%;
        max-width: 10rem;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.8;
        transition: all 0.3s ease-in-out;
    }

        .marca-logo img:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.05);
        }

/* Responsive */
@media (max-width: 768px) {
    .marca-logo {
        flex: 1 1 40%; /* en pantallas medianas 2 logos por fila */
    }
}

@media (max-width: 480px) {
    .marca-logo {
        flex: 1 1 80%; /* en pantallas pequeñas 1 logo por fila */
    }
}
