/* ============================================================
   RESET Y VARIABLES
   ============================================================ */
:root {
    --rojo: #D42A2A;
    --rojo-oscuro: #A01E1E;
    --amarillo: #FFD700;
    --amarillo-oscuro: #E6C200;
    --gris-claro: #F5F5F5;
    --gris-medio: #E0E0E0;
    --gris-texto: #1A1A1A;
    --blanco: #FFFFFF;
    --sombra: 0 8px 30px rgba(0, 0, 0, 0.12);
    --sombra-fuerte: 0 12px 40px rgba(0, 0, 0, 0.2);
    --radio: 12px;
    --transicion: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--gris-texto);
    background: var(--gris-claro);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BOTÓN "VOLVER ARRIBA" (Flotante)
   ============================================================ */
.btn-volver-arriba {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--rojo);
    color: var(--blanco);
    border: 3px solid var(--amarillo);
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 42, 42, 0.4);
    transition: all var(--transicion);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-volver-arriba.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.btn-volver-arriba:hover {
    background: var(--rojo-oscuro);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 42, 42, 0.6);
}

.btn-volver-arriba:active {
    transform: scale(0.95);
}

/* ============================================================
   HEADER / NAVEGACIÓN
   ============================================================ */
header {
    background: var(--blanco);
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- LOGO ---- */
.logo-kowa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-kowa img {
    width: 100px;
    /*height: 55px;*/
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 42, 42, 0.3));
    transition: transform var(--transicion);
}

.logo-kowa:hover img {
    transform: scale(1.25);
}

.logo-kowa .nombre {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--rojo);
}

.logo-kowa .badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--rojo-oscuro);
    background: var(--amarillo);
    padding: 2px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Menú ---- */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

nav ul a {
    text-decoration: none;
    color: var(--gris-texto);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transicion);
    padding: 4px 0;
    border-bottom: 3px solid transparent;
}

nav ul a:hover {
    color: var(--rojo);
    border-bottom-color: var(--amarillo);
}

.btn-facturacion {
    background: var(--rojo);
    color: var(--blanco) !important;
    padding: 10px 22px !important;
    border-radius: 30px;
    font-weight: 700;
    border: none !important;
    transition: background var(--transicion), transform var(--transicion);
}

.btn-facturacion:hover {
    background: var(--rojo-oscuro) !important;
    transform: scale(1.04);
    border-bottom: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--rojo) 0%, #6B1414 100%);
    color: var(--blanco);
    padding: 70px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero .logo-grande img {
    width: 200px;
    /*height: 120px;*/
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 12px;
}

.hero h1 .destacar {
    color: var(--amarillo);
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 28px;
    opacity: 0.92;
}

.btn-cta {
    display: inline-block;
    background: var(--amarillo);
    color: var(--rojo-oscuro);
    padding: 16px 44px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform var(--transicion), box-shadow var(--transicion);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.5);
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios {
    padding: 50px 0 60px;
    background: var(--blanco);
}

.servicios h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.servicios h2 span {
    color: var(--rojo);
}

.servicios .sub {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.grid-servicios .item {
    background: var(--gris-claro);
    padding: 16px 12px;
    border-radius: var(--radio);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: border-color var(--transicion), background var(--transicion);
}

.grid-servicios .item:hover {
    border-color: var(--amarillo);
    background: var(--blanco);
}

.grid-servicios .item .icono {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 4px;
}

/* ============================================================
   UBICACIONES
   ============================================================ */
.ubicaciones {
    padding: 70px 0;
    background: var(--gris-claro);
}

.ubicaciones h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 6px;
}

.ubicaciones h2 span {
    color: var(--rojo);
}

.ubicaciones .sub {
    text-align: center;
    color: #666;
    margin-bottom: 36px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.estacion {
    background: var(--blanco);
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform var(--transicion);
}

.estacion:hover {
    transform: translateY(-6px);
}

/* ---- Carrusel / Slider ---- */
.slider-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #222;
}

.slider-container .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-container .slides img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-container .btn-slider {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--blanco);
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: background var(--transicion);
    z-index: 5;
    line-height: 1;
}

.slider-container .btn-slider:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-container .btn-slider.prev {
    left: 8px;
}

.slider-container .btn-slider.next {
    right: 8px;
}

.slider-container .dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-container .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background var(--transicion);
}

.slider-container .dots span.active {
    background: var(--amarillo);
}

/* ---- Info estación ---- */
.estacion-info {
    padding: 24px 26px 28px;
}

.estacion-info h3 {
    font-size: 1.6rem;
    color: var(--rojo);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.estacion-info h3::before {
    content: '📍';
    font-size: 1.3rem;
}

.estacion-info p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.estacion-info p strong {
    color: var(--gris-texto);
}

.estacion-info .etiqueta {
    display: inline-block;
    background: var(--amarillo);
    color: var(--rojo-oscuro);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 12px;
    margin-top: 4px;
    text-transform: uppercase;
}

.btn-mapa {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 24px;
    background: var(--rojo);
    color: var(--blanco);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transicion);
}

.btn-mapa:hover {
    background: var(--rojo-oscuro);
}

/* ============================================================
   NOSOTROS (Misión, Visión, Valores)
   ============================================================ */
.nosotros {
    padding: 70px 0;
    background: var(--blanco);
}

.nosotros h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 36px;
}

.nosotros h2 span {
    color: var(--rojo);
}

.nosotros p{
    text-align: justify;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card-mvv {
    background: var(--gris-claro);
    padding: 30px 28px;
    border-radius: var(--radio);
    border-top: 5px solid var(--amarillo);
    box-shadow: var(--sombra);
    transition: transform var(--transicion);
}

.card-mvv:hover {
    transform: translateY(-4px);
}

.card-mvv h3 {
    color: var(--rojo);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-mvv ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.card-mvv ul li {
    padding: 4px 0;
}

.card-mvv ul li::before {
    content: '◆ ';
    color: var(--amarillo);
    font-weight: 900;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto {
    padding: 70px 0;
    background: var(--gris-claro);
}

.contacto h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 6px;
}

.contacto .sub {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.contacto form {
    max-width: 620px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 40px 44px;
    border-radius: var(--radio);
    box-shadow: var(--sombra-fuerte);
}

.contacto form label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.contacto form label .req {
    color: var(--rojo);
}

.contacto form select,
.contacto form input,
.contacto form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 2px solid var(--gris-medio);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transicion), box-shadow var(--transicion);
    background: var(--blanco);
}

.contacto form select:focus,
.contacto form input:focus,
.contacto form textarea:focus {
    border-color: var(--rojo);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 42, 42, 0.12);
}

.contacto form .file-wrapper {
    margin-bottom: 18px;
}

.contacto form .file-wrapper input[type="file"] {
    padding: 10px 0;
    border: none;
    margin-bottom: 0;
}

.contacto form .file-wrapper small {
    color: #888;
    font-size: 0.8rem;
}

.contacto form button {
    background: var(--rojo);
    color: var(--blanco);
    border: none;
    padding: 16px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transicion), transform var(--transicion);
}

.contacto form button:hover {
    background: var(--rojo-oscuro);
    transform: scale(1.01);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #111;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

footer a {
    color: var(--amarillo);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-links {
    margin-top: 6px;
    font-size: 0.9rem;
}

footer .footer-links a {
    margin: 0 12px;
}

/* ============================================================
   UTILITY: Mensaje de éxito
   ============================================================ */
.msg-exito {
    display: none;
    background: #28a745;
    color: var(--blanco);
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.msg-exito.mostrar {
    display: block;
}

/* ============================================================
   RESPONSIVE - CELULARES Y TABLETS (hasta 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* ============================================================
       CORRECCIÓN: Desactivar scroll suave en móviles y tablets
       ============================================================ */
    html {
        scroll-behavior: auto !important;
    }

    /* ============================================================
       CORRECCIÓN: Ajustar padding del hero en tablets
       ============================================================ */
    .hero {
        padding-top: 110px;
        padding-bottom: 80px;
    }

    /* ============================================================
       CORRECCIÓN: Ajustar secciones para compensar header fijo
       ============================================================ */
    .servicios,
    .ubicaciones,
    .nosotros,
    .contacto {
        scroll-margin-top: 80px;
    }

    /* ============================================================
       ESTILOS RESPONSIVE EXISTENTES
       ============================================================ */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .logo-grande img {
        width: 90px;
        height: 90px;
    }

    nav ul {
        gap: 12px;
        justify-content: center;
        width: 100%;
    }

    .logo-kowa .nombre {
        font-size: 1.3rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contacto form {
        padding: 24px 20px;
    }

    .slider-container {
        height: 180px;
    }

    .estacion-info h3 {
        font-size: 1.3rem;
    }

    /* Botón volver arriba más pequeño en móviles/tablets */
    .btn-volver-arriba {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================================
   RESPONSIVE - CELULARES PEQUEÑOS
   ============================================================ */
@media (max-width: 480px) {
    .hero {
        padding: 50px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .btn-cta {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .servicios .grid-servicios {
        grid-template-columns: repeat(2, 1fr);
    }
}