/* ======================================================= */


/* IMPORTACIÓN Y CONFIGURACIÓN DE MONTSERRAT */


/* ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ======================================================= */


/* REINICIO Y ESTILOS BASE MEJORADOS */


/* ======================================================= */

:root {
    --color-primary: #540606;
    --color-secondary: #dda97cdd;
    --color-accent: #3498db;
    --color-light: #f5efef;
    --color-dark: #540606;
    --color-texto-claro: #f5efef;
    --color-secundario: #dda97cdd;
    --color-principal: #540606;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --container-padding: clamp(1rem, 5vw, 5%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--color-light);
    overflow-x: hidden;
    background: var(--color-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Mejora de legibilidad para Montserrat */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.7;
}


/* Contenedor general para control de anchos */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}


/* ======================================================= */


/* HEADER MEJORADO SIN MOVIMIENTO INICIAL */


/* ======================================================= */

.header-principal {
    /* Aquí se aplica el degradado lineal */
    background-image: linear-gradient(to right, #5a0202, #8a0303);
    box-shadow: none;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    animation: none;
}

.header-principal.scrolled {
    padding: 0.5rem var(--container-padding);
    /* Se mantiene un degradado sutil con transparencia al hacer scroll */
    background-image: linear-gradient(to bottom, rgba(84, 6, 6, 0.95), rgba(84, 6, 6, 0.8));
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.header-principal.scrolled .logo img {
    height: 40px;
    animation: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-light);
    margin: 3px 0;
    transition: var(--transition);
}

.barra-navegacion ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.barra-navegacion li {
    position: relative;
    margin: 0 0.8rem;
}

.barra-navegacion a {
    text-decoration: none;
    color: var(--color-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.barra-navegacion a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.barra-navegacion a:hover:after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.catalogo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(84, 6, 6, 0.95);
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-radius: 4px;
    padding: 0.5rem 0;
}

.catalogo-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-light);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.catalogo-dropdown a:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding-left: 2rem;
}

.dropdown:hover .catalogo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =============================================
   EFECTOS DE DESTELLO SOLAR Y ANIMACIONES DE LETRAS 
   (TRANSFERIDOS DESDE EL APARTADO DE INICIO)
============================================= */

/* DESTELLO HORIZONTAL EN HEADER (EFECTO SOLAR) */
.header-principal::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.04) 20%, 
        rgba(255, 215, 0, 0.5) 50%,
        rgba(255, 255, 255, 0.04) 80%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: sunFlash 3.5s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes sunFlash {
    0% {
        left: -150%;
        opacity: 0.5;
    }
    50% {
        left: 150%;
        opacity: 0.7;
    }
    100% {
        left: 150%;
        opacity: 0.5;
    }
}

/* EFECTOS MEJORADOS EN ENLACES DE NAVEGACIÓN */
.barra-navegacion a {
    text-decoration: none;
    color: var(--color-light) !important;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.2);
}

.barra-navegacion a:hover {
    color: #FFD700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* SUBRAYADO SOLAR ANIMADO EN ENLACES */
.barra-navegacion a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FFD700);
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.barra-navegacion a:hover::after {
    width: 100%;
}

/* EFECTO EN LOGO */
.logo img {
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.2));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* ANIMACIÓN DE PULSO PARA LOGO */
@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.2));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
    }
}

.logo img {
    animation: pulseLogo 2s infinite;
}

/* MEJORA DROPDOWN CON EFECTOS SOLARES */
.catalogo-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(84, 6, 6, 0.95);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border-radius: 4px;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.catalogo-dropdown a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--color-light);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.1);
}

.catalogo-dropdown a:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    color: #FFD700 !important;
    padding-left: 2rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.dropdown:hover .catalogo-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* EFECTO BRILLO EN BOTÓN HAMBURGUESA */
.menu-toggle span {
    box-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
}

.menu-toggle.active span {
    background-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
/* ======================================================= */


/* WhatsApp flotante con animación */


/* ======================================================= */

.whatsapp-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
    animation: none;
}

.whatsapp-flotante img {
    width: 35px;
    height: 35px;
}


/* ======================================================= */


/* FOOTER ACTUALIZADO (igual al primer código) */


/* ======================================================= */

.footer-principal {
    background-image: linear-gradient(to right, #ffffff, #ffffff);
    color: var(--color-texto-claro);
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columna {
    flex: 1 1 200px;
    margin-bottom: 1rem;
   
}

.footer-info .logo {
    height: 60px;
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-weight: 300;
    color:#000000
}

.footer-columna h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-secundario);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-columna ul {
    list-style: none;
    padding: 0;
}

.footer-columna ul li {
    margin-bottom: 0.5rem;
}

.footer-columna ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-columna ul li a:hover {
    color: var(--color-secundario);
}

.footer-contacto p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: #000000;
}

.footer-contacto i {
    color: var(--color-secundario);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.social-icons a {
    color:#000000;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-secundario);
    transform: scale(1.1);
}

.footer-bottom {
    flex-basis: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}


/* ===========================================
        BOTÓN FLOTANTE "VOLVER ARRIBA"
    ==========================================*/

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--color-light);
}


/* ======================================================= */


/* ANIMACIONES NECESARIAS */


/* ======================================================= */

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ======================================================= */


/* RESPONSIVE DESIGN MEJORADO */


/* ======================================================= */

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    .barra-navegacion {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-primary);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    .barra-navegacion.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .barra-navegacion ul {
        flex-direction: column;
        padding: 2rem;
    }
    .barra-navegacion li {
        margin: 0.5rem 0;
        width: 100%;
    }
    .catalogo-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        margin-left: 1rem;
        background: transparent;
    }
    .catalogo-dropdown.show {
        display: block;
    }
    .dropdown:hover .catalogo-dropdown {
        transform: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .social-icons a {
        animation: none;
    }
}

@media (max-width: 576px) {
    .header-principal {
        padding: 0.8rem 3%;
    }
    .whatsapp-flotante,
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .back-to-top {
        bottom: 85px
    }
    .whatsapp-flotante img {
        width: 30px;
        height: 30px;
    }
    .footer-columna {
        padding: 0;
    }
}


/* Tablets y menores */

@media (max-width: 768px) {
    /* Menú hamburguesa */
    .barra-navegacion {
        top: 60px;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        transition: height 0.3s ease;
    }
    .barra-navegacion.active {
        height: calc(100vh - 60px);
        padding: 1rem 0;
    }
    .barra-navegacion ul {
        flex-direction: column;
        text-align: center;
    }
    .barra-navegacion li {
        margin: 1rem 0;
    }
    .catalogo-dropdown {
        position: static;
        transform: none;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}


/* Extra pequeño (celulares chicos) */

@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
}


/* ======================================================= */


/* REINICIO Y ESTILOS BASE MEJORADOS */


/* ======================================================= */

 :root {
    --color-primary: #540606;
    --color-secondary: #dda97cdd;
    --color-accent: #3498db;
    --color-light: #f5efef;
    --color-dark: #540606;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    --container-padding: clamp(1rem, 5vw, 5%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
}


/* ======================================================= */


/* ESTRUCTURA PRINCIPAL */


/* ======================================================= */

.complaints-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: var(--container-padding);
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.complaints-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--color-secondary);
}

.complaints-header h1 {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.complaints-header p {
    color: #666;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}


/* ======================================================= */


/* FORMULARIO */


/* ======================================================= */

.complaint-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-secondary);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(84, 6, 6, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.required::after {
    content: " *";
    color: #e74c3c;
}


/* ======================================================= */


/* BOTONES */


/* ======================================================= */

.form-buttons {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #3a0404;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background-color: #d1975f;
    transform: translateY(-2px);
}


/* ======================================================= */


/* INFORMACIÓN ADICIONAL */


/* ======================================================= */

.complaint-info {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgba(221, 169, 124, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--color-secondary);
}

.complaint-info h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.complaint-info ul {
    padding-left: 1.5rem;
}

.complaint-info li {
    margin-bottom: 0.5rem;
}


/* ======================================================= */


/* RESPONSIVE */


/* ======================================================= */

@media (max-width: 768px) {
    .complaint-form {
        grid-template-columns: 1fr;
    }
    .form-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}


/* ======================================================= */


/* ESTILOS PARA EL MAPA EN EL FOOTER */


/* ======================================================= */

.mapa-ubicacion-footer {
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.mapa-ubicacion-footer iframe {
    width: 100%;
    height: 200px;
    /* Puedes ajustar esta altura */
    display: block;
}


/* Adaptación para pantallas más pequeñas */

@media (max-width: 768px) {
    .mapa-ubicacion-footer iframe {
        height: 150px;
        /* Reduce la altura en móviles para mejor visualización */
    }
}
.alert {
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* =============================================
   PARTÍCULAS DE VERANO PARA HEADER
============================================= */
.summer-particles-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.summer-particles-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, 
        rgba(255, 215, 0, 0.1) 0%, 
        transparent 50%);
    animation: particleGlow 4s ease-in-out infinite alternate;
}

@keyframes particleGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* =============================================
   RESPONSIVE: AJUSTES PARA MÓVILES
============================================= */
@media (max-width: 768px) {
    .header-principal::after {
        animation-duration: 5s;
        opacity: 0.4;
    }
    
    .summer-particles-header {
        display: none; /* Ocultar en móviles para rendimiento */
    }
    
    .barra-navegacion a {
        text-shadow: 0 0 2px rgba(255, 215, 0, 0.1);
    }
    
    .barra-navegacion a:hover {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
}