@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --primary: #006064;
    --secondary: #00838f;
    --accent: #26c6da;
    --text: #1a2a2b;
    --background: #ffffff;
    --overlay: rgba(255, 255, 255, 0.85);
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 96, 100, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

/* --- Layout --- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--overlay);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 96, 100, 0.1);
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 85px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

/* --- Hamburger Menu --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%),
        url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.hero .container {
    margin-left: 50px;
}

.hero-content {
    max-width: 650px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-rl-bg {
    position: absolute;
    right: 5%;
    font-size: 25rem;
    font-weight: 900;
    color: rgba(0, 96, 100, 0.04);
    font-family: 'Outfit', sans-serif;
    user-select: none;
    animation: heartbeat 2s infinite ease-in-out;
    z-index: 1;
}

.hero-banner {
    position: absolute;
    left: 70%;
    top: 50%;
    transform: translate(-10%, -50%);
    width: 450px;
    height: 550px;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('images/banner_cleaner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 30px 60px rgba(0, 96, 100, 0.2);
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
    animation: blobMorph 10s infinite alternate ease-in-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 96, 100, 0.2);
}

/* --- Services Section --- */

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 96, 100, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: 'Leer más';
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    transition: var(--transition);
}

.card:hover::after {
    bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    margin-bottom: 1rem;
}

/* --- Stats Info --- */
.stats {
    background: var(--primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.stats h2 {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item h4 {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
}

/* --- Contact Section --- */

.contact-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background: #fdfdfd;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 96, 100, 0.2);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

/* --- Footer --- */

footer {
    background: #002e31;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- WhatsApp Button --- */

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 38px;
    /* Icono un poco más grande para mejor visibilidad */
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* --- Modal --- */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: zoomIn 0.3s ease-out;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- Image Slider --- */

.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    background: #f8fafc;
}

.slider-track {
    display: flex;
    width: calc(300px * 10);
    animation: scroll 20s linear infinite;
    gap: 2rem;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slide {
    width: 300px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.slide:hover img {
    transform: scale(1.1);
}

/* --- Pricing in Modal --- */

.pricing-list {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background: #fdfdfd;
    border-radius: 8px;
}

.price-item span:first-child {
    font-weight: 500;
    color: var(--primary);
}

.price-item span:last-child {
    font-weight: 700;
    color: var(--accent);
}

/* --- Testimonials --- */

.testimonials {
    padding: 6rem 0;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0 3rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.testimonials-slider .testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 96, 100, 0.05);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1024px) {
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc(33.333% - 1.35rem);
    }
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info div h4 {
    font-size: 1rem;
    margin: 0;
}

/* --- Animations --- */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-316px * 5));
    }
}

@keyframes blobMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner {
        width: 350px;
        height: 450px;
        left: 75%;
    }

    .hero .container {
        margin-left: 20px;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        display: none;
    }

    .hero .container {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
        /* Por encima de los links */
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        justify-content: center;
        align-items: center;
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        transform: translateY(-100%);
        z-index: 1001;
        gap: 2.5rem;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 2px;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--accent);
        transition: var(--transition);
        transform: translateX(-50%);
    }

    .nav-links a:hover::after {
        width: 50%;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 140px 0 80px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .hero-rl-bg {
        font-size: 10rem;
        top: 15%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contact-flex {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .logo {
        height: 60px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}