/* ========================================
   RESET Y VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #ffc107;
    --text-dark: #333;
    --text-light: #fff;
    --transition-speed: 0.4s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #fff;
}

/* ========================================
   HEADER - TRANSPARENTE CON ANIMACIÓN
   ======================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

#main-header.scrolled .btn-img img,
#main-header.scrolled .icon-link img {
    filter: brightness(0);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.btn-img {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.btn-img:hover {
    transform: scale(1.1);
}

.btn-img img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-speed) ease;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo-single {
    height: 80px;
    width: 180px;
    object-fit: contain;
    transition: all var(--transition-speed) ease;
    display: block;
}

.right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-link {
    position: relative;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.icon-link:hover {
    transform: scale(1.1);
}

.icon-link img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-speed) ease;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ========================================
   OVERLAY MENÚ HAMBURGUESA
   ======================================== */
.overlay-coleccion {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform .7s cubic-bezier(.77,0,.18,1), visibility 0s linear .7s;
    overflow-y: auto;
}

.overlay-coleccion.active {
    visibility: visible;
    transform: translateY(0);
    transition: transform .7s cubic-bezier(.77,0,.18,1);
}

.overlay-contenido {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity .5s ease .3s, transform .5s ease .3s;
}

.overlay-coleccion.active .overlay-contenido {
    opacity: 1;
    transform: translateY(0);
}

.cerrar-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: transform .3s ease;
}

.cerrar-overlay:hover {
    transform: rotate(90deg);
}

.titulo-overlay {
    color: var(--text-light);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.grid-coleccion {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-coleccion .card {
    text-decoration: none;
    color: var(--text-light);
    cursor: pointer;
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all .6s ease;
}

.grid-coleccion .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

.grid-coleccion .card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: transform .5s ease, filter .5s ease;
}

.grid-coleccion .card:hover img {
    transform: scale(1.15);
}

.grid-coleccion .card h3 {
    padding: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-ver {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #ffb300);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   CARRUSEL DEL HEADER
   ======================================== */
.header-carrusel {
    background-color: transparent;
    overflow: hidden;
}

#viewport {
    width: 100%;
    overflow: hidden;
}

#track {
    display: flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   HERO SECTION INFORMATIVA
   ======================================== */
.hero-informativa {
    min-height: 50vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
    animation: expandWidth 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

/* ========================================
   SECCIÓN INFORMATIVA
   ======================================== */
.seccion-informativa {
    padding: 80px 20px;
    background: #fff;
    min-height: 60vh;
}

.contenedor-politica {
    max-width: 900px;
    margin: 0 auto;
}

.bloque-politica {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.bloque-politica h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bloque-politica h3 {
    font-size: 1.3rem;
    color: #2d2d2d;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.bloque-politica p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.bloque-politica ul,
.bloque-politica ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.bloque-politica li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
    text-align: justify;
}

.bloque-politica strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* ========================================
   CHAT FLOTANTE
   ======================================== */
.chat-float {
    fill: white;
    width: 50px;
    height: 50px;
    padding: 3px;
    background-color: #4dc247;
    border-radius: 50%;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4), 2px 2px 11px rgba(0,0,0,0.7);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-float:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 15px 40px #4dc247;
}

.chat-icon {
    animation: pulse 3s infinite;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-ico {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #000;
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease-out 1.5s both;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #ffd700;
    white-space: nowrap;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: #ffd700;
    padding-left: 5px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.3s ease;
}

.map-wrapper:hover iframe {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.85rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .bloque-politica h2 {
        font-size: 1.5rem;
    }

    .bloque-politica h3 {
        font-size: 1.1rem;
    }

    .bloque-politica p,
    .bloque-politica li {
        font-size: 0.95rem;
    }

    .seccion-informativa {
        padding: 50px 15px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-line {
        width: 60px;
    }

    .bloque-politica {
        margin-bottom: 40px;
    }

    .bloque-politica h2 {
        font-size: 1.3rem;
    }

    .bloque-politica h3 {
        font-size: 1rem;
    }

    .bloque-politica p,
    .bloque-politica li {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .seccion-informativa {
        padding: 40px 12px;
    }

    .contenedor-politica {
        padding: 0 5px;
    }
}

/* ========================================
   SMOOTH SCROLLING Y SELECCIÓN
   ======================================== */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #ffd700;
    color: #000;
}

::-moz-selection {
    background: #ffd700;
    color: #000;
}

