:root {
    --primary-blue: #0A3D91;
    /* Deep trustworthy blue */
    --secondary-blue: #1C6DD0;
    --accent-blue: #4E95FF;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128C7E;
    --pearly-white: #F8F9FB;
    /* Pearly white */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #1A1A24;
    --text-light: #E0E6ED;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--pearly-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle pearly gradient */
    background: radial-gradient(circle at top left, #FFFFFF 0%, #F5F7FA 50%, #E8EEF5 100%);
}

h1,
h2,
h3,
h4,
.brand-title {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top Bar Announcement */
.top-bar {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(10, 61, 145, 0.4);
}

.top-bar i {
    color: var(--whatsapp-green);
    font-size: 1.3rem;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

/* Glassmorphism panel base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(10, 61, 145, 0.1);
    border-radius: 12px;
}

.glass-panel-dark {
    background: rgba(10, 61, 145, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-phone {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 61, 145, 0.4);
}

.btn-phone:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
}

.btn-primary {
    background: white;
    color: var(--primary-blue);
    padding: 12px 28px;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--pearly-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.15) rotate(10deg);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Header */
.main-header {
    width: 100%;
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-left {
    display: flex;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.logo {
    height: 100px;
    border-radius: 8px;
    /* Optional depending on logo shape */
}

.brand-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-title span {
    font-size: 0.85rem;
    color: var(--secondary-blue);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Responsive header for mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column-reverse;
        /* Logo on top, buttons below */
        text-align: center;
    }

    .brand {
        text-align: center;
        flex-direction: column;
    }
}

/* Carousel Section */
.hero-carousel {
    position: relative;
    height: 42.4vw;
    min-height: 340px;
    max-height: 580px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 15px 35px rgba(10, 61, 145, 0.15);
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 61, 145, 0.7) 0%, rgba(28, 109, 208, 0.4) 100%);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-caption {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: center;
    max-width: 600px;
}

.carousel-caption h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1A1A24;
    /* Or use primary blue if preferred, but dark reads well on glass */
}

.carousel-caption p {
    font-size: 1.2rem;
    color: #333;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 25px;
    pointer-events: none;
    z-index: 5;
}

.carousel-controls button {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background: white;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Banner de temporada */
.carousel-slide.banner-seasonal {
    background-color: #170e3f;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.carousel-slide.banner-seasonal::before {
    display: none; /* No aplicar overlay azul para preservar diseño y texto original */
}

.carousel-slide .banner-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    cursor: pointer;
}

/* Services */
.services-section {
    padding: 40px 0 80px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.service-info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 15px;
    text-align: center;
    transform: translateY(0);
    transition: all 0.4s ease;
    opacity: 0.25;
    /* Makes background and text more transparent */
}

.service-info h3 {
    color: var(--primary-blue);
    font-size: 1.15rem;
    margin: 0;
}

.service-info p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.4;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 61, 145, 0.2);
}

.service-card:hover .service-info {
    opacity: 1;
    /* Text and background become fully legible */
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Lavanderias Banner */
.banner-lavanderias {
    padding: 60px 0;
    background: url('https://images.unsplash.com/photo-1545173168-9f1947eebb7f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    position: relative;
}

.banner-lavanderias::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 61, 145, 0.6);
}

.banner-content {
    position: relative;
    padding: 50px;
    text-align: center;
    max-width: 800px;
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Brands Marquee */
.brands-marquee {
    background: white;
    padding: 30px 0;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03), 0 5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

.marquee-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
    -webkit-animation: scroll-left 25s linear infinite;
}

.marquee-content img {
    height: 70px;
    width: auto;
    object-fit: contain;
    margin: 0 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    mix-blend-mode: multiply;
    /* Removes white backgrounds */
    filter: brightness(1.05) contrast(1.15);
    /* Elimina tonos casi-blancos transformandolos a blanco puro */

    /* Safari Fixes for disappearing images */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.marquee-content img:hover {
    opacity: 1;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
    }
}

@-webkit-keyframes scroll-left {
    0% {
        -webkit-transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-50%);
    }
}

@media (hover: none) {
    .service-info {
        opacity: 0.95;
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Footer / Contact */
.contact-footer {
    background: #062358;
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.contact-info p {
    max-width: 400px;
    margin-bottom: 25px;
    color: #B0C4DE;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item i {
    color: var(--accent-blue);
    font-size: 1.3rem;
}

.contact-item:hover {
    color: var(--accent-blue);
}

.payment-info {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
}

.payment-info h3 {
    font-size: 1.6rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.payment-info p {
    color: #B0C4DE;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 15px;
}

.payment-icons i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.payment-icons i:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.msi-text {
    font-size: 0.9rem !important;
    color: var(--whatsapp-green) !important;
    font-weight: 600;
}

.business-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-logo {
    height: 80px;
    background: white;
    padding: 10px;
    border-radius: 12px;
}

.business-info p {
    font-family: 'Outfit';
    font-size: 1.1rem;
    color: #B0C4DE;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8A9BB2;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.revanet-link {
    color: var(--accent-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.revanet-link:hover {
    color: var(--pearly-white);
    text-decoration: underline;
}

/* ======================================================== */
/* CAPA FLOTANTE DE DÍA DE MUERTOS (Fija al hacer scroll)   */
/* ======================================================== */
.dia-muertos-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    z-index: 995;
    overflow: hidden;
}

/* Banderines en los extremos laterales (Centro despejado para textos) */
.papel-picado-wing {
    position: fixed;
    top: 0;
    height: 52px;
    width: clamp(140px, 26vw, 360px);
    background-image: url('papel-picado.svg');
    background-repeat: repeat-x;
    background-size: 360px 52px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    transform-origin: top center;
    animation: papelFlutter 4.5s ease-in-out infinite alternate;
    pointer-events: none;
}

.papel-picado-wing.left {
    left: 0;
    background-position: left top;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

.papel-picado-wing.right {
    right: 0;
    background-position: right top;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

@keyframes papelFlutter {
    0% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(1.5px) scaleY(1.02);
    }
    100% {
        transform: translateY(0) scaleY(1);
    }
}

/* Telarañas en esquinas fijas */
.corner-web {
    position: fixed;
    top: 0;
    width: 95px;
    height: 95px;
    background-image: url('corner-web.svg');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 996;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.corner-web.left {
    left: 0;
}

.corner-web.right {
    right: 0;
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .papel-picado-wing {
        height: 36px;
        width: clamp(75px, 22vw, 120px);
        background-size: 240px 36px;
    }

    .corner-web {
        width: 60px;
        height: 60px;
        opacity: 0.45;
    }

    .hero-carousel {
        height: 50vw;
        min-height: 260px;
    }

    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-controls button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .business-info {
        text-align: left;
        align-items: flex-start;
    }

    .carousel-caption h2 {
        font-size: 1.8rem;
    }

    .banner-content {
        padding: 30px 20px;
    }
}