:root {
    /* Colors */
    --primary: #f8df58;
    --primary-rgb: 248, 223, 88;
    --dark: #121212;
    --dark-soft: #1e1e1e;
    --light: #ffffff;
    --gray: #f4f4f4;
    --text-main: #333333;
    --text-muted: #666666;
    --accent: #f8df58;

    /* Fonts */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light);
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 3px solid var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background: #e5cc40;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--light);
}

section, header, footer {
    position: relative;
    background: transparent !important;
}


h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--accent);
}

/* --- Components --- */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--light);
    transform: translateY(-5px);
}

.btn-dark {
    background-color: var(--dark);
    color: var(--light);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 0;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--dark);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--dark), #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navbar --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: block;
    height: 60px;
    /* Reduced from 80px */
    overflow: hidden;
    position: relative;
    width: 110px;
    /* Reduced from 140px */
}

.logo-img {
    height: 110%;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
    /* Reduced scale */
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.btn-nav {
    background-color: var(--dark);
    color: var(--light) !important;
    padding: 10px 24px;
    border-radius: 50px;
    opacity: 1 !important;
}

.btn-nav:hover {
    background-color: var(--primary);
    color: var(--dark) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero --- */

.hero {
    height: 80vh;
    /* Reduced from 100vh */
    min-height: 600px;
    /* Reduced from 800px */
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 60px;
    /* Reduced from 80px */
}

.global-blobs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content but above body background */
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: normal; /* Better visibility on light bg */
}

/* Distribución por toda la web */
.blob-1 {
    width: 700px;
    height: 700px;
    background: var(--primary);
    top: 2%;
    left: -150px;
    opacity: 0.35;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #fff9db;
    top: 5%;
    right: -150px;
    opacity: 0.45;
}

.blob-3 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: 15%;
    right: 10%;
    opacity: 0.3;
}

.blob-4 {
    width: 650px;
    height: 650px;
    background: #fff9db;
    top: 25%;
    left: -100px;
    opacity: 0.35;
}

.blob-5 {
    width: 550px;
    height: 550px;
    background: var(--primary);
    top: 35%;
    right: 5%;
    opacity: 0.25;
}

.blob-6 {
    width: 700px;
    height: 700px;
    background: #fff9db;
    top: 45%;
    left: 10%;
    opacity: 0.35;
}

.blob-7 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: 55%;
    right: 15%;
    opacity: 0.25;
}

.blob-8 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: 65%;
    left: -150px;
    opacity: 0.3;
}

.blob-9 {
    width: 500px;
    height: 500px;
    background: #fff9db;
    top: 75%;
    right: 5%;
    opacity: 0.35;
}

.blob-10 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 85%;
    left: 15%;
    opacity: 0.25;
}

.blob-11 {
    width: 800px;
    height: 800px;
    background: #fff9db;
    top: 90%;
    right: -250px;
    opacity: 0.35;
}

.blob-12 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: 40%;
    left: 40%;
    opacity: 0.2;
}

.blob-13 {
    width: 900px;
    height: 900px;
    background: var(--primary);
    top: 60%;
    right: -350px;
    opacity: 0.25;
}

.blob-14 {
    width: 500px;
    height: 500px;
    background: #fff9db;
    top: 20%;
    left: 30%;
    opacity: 0.25;
}

.blob-15 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 80%;
    right: 20%;
    opacity: 0.2;
}

.blob-16 {
    width: 650px;
    height: 650px;
    background: var(--primary);
    top: 50%;
    left: -250px;
    opacity: 0.25;
}

.blob-17 {
    width: 500px;
    height: 500px;
    background: #fff9db;
    top: 12%;
    left: 60%;
    opacity: 0.25;
}

.blob-18 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: 68%;
    right: 40%;
    opacity: 0.15;
}

.blob-19 {
    width: 450px;
    height: 450px;
    background: #fff9db;
    top: 32%;
    left: 15%;
    opacity: 0.25;
}

.blob-20 {
    width: 700px;
    height: 700px;
    background: var(--primary);
    top: 88%;
    left: 5%;
    opacity: 0.3;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.illustration-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    /* Increased further */
    height: 700px;
    /* Increased further */
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.illustration-slider.small {
    height: 540px;
    /* Increased 20% (450px * 1.2) */
    max-width: 720px;
    /* Increased 20% (600px * 1.2) */
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.illustration-slider.xsmall {
    height: 350px;
    /* Increased from 250px */
    max-width: 500px;
    /* Increased from 400px */
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

.illustration-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Smoother fade */
}

.illustration-slider .slide.active {
    opacity: 1;
}


@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.badge-1 {
    top: 60px;
    right: 15%;
    /* Use percentage to keep it over the image */
}

.badge-2 {
    bottom: 120px;
    left: 10%;
    /* Use percentage */
}

.floating-badge i {
    color: var(--primary);
    font-size: 20px;
}

/* --- Services --- */

.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.service-features li i {
    color: var(--primary);
}

.service-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.featured .service-price {
    color: var(--primary);
}

.service-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.featured .service-note {
    color: rgba(255, 255, 255, 0.7);
}

.services-footer-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-footer-note p {
    margin: 0;
    color: var(--dark);
    font-weight: 500;
}

.services-footer-note i {
    color: var(--primary);
    margin-right: 10px;
}

.service-card.featured {
    background-color: var(--dark);
    color: var(--light);
}

.service-card.featured .service-icon {
    background-color: var(--primary);
}

.service-card.featured p {
    color: #aaa;
}

.featured-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

/* --- Bento Grid --- */

.benefits {
    padding: var(--section-padding);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.bento-item {
    background-color: var(--gray);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    cursor: default;
}

.bento-item:hover {
    background-color: var(--primary);
    transform: scale(1.02);
}

.bento-item i {
    font-size: 32px;
    margin-bottom: 20px;
    display: block;
}

.bento-item h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.item-large {
    grid-column: span 2;
}

.item-medium {
    grid-column: span 2;
}

.item-small {
    grid-column: span 1;
}

.bento-grid .item-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-grid .item-medium:nth-child(2) {
    grid-column: span 2;
}

.bento-grid .item-small:nth-child(3) {
    grid-column: span 1;
}

.bento-grid .item-small:nth-child(4) {
    grid-column: span 1;
}

.bento-grid .item-medium:nth-child(5) {
    grid-column: span 2;
}

/* --- About --- */

.about {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.illustration-slider {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
}

.about-illustration {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 32px;
}

.circle-decoration {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background-color: var(--primary);
    border-radius: 50%;
    filter: blur(60px);
    /* Changed from solid to blur */
    z-index: 0;
    opacity: 0.3;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat .label {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Contact --- */

.contact {
    padding: var(--section-padding);
}

.contact-box {
    background-color: var(--gray);
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--dark);
    color: var(--light);
    padding: 80px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #888;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.info-item span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.contact-form-container {
    padding: 80px;
    background-color: var(--light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.contact-form .btn-dark {
    background-color: var(--primary);
    color: var(--dark);
    font-weight: 700;
}

.contact-form .btn-dark:hover {
    background-color: var(--dark);
    color: var(--light);
}

/* --- Footer --- */

.footer {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    color: var(--dark);
    padding: 30px 0 20px;
    /* Reduced padding */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
    /* Reduced padding */
    margin-bottom: 15px;
    /* Reduced margin */
}

.footer-logo {
    height: 60px;
    /* Increased from 50px */
    overflow: hidden;
    position: relative;
    width: 120px;
    /* Increased from 100px */
}

.footer-logo img {
    height: 100%;
    width: auto;
    transform: scale(1.4);
    /* Increased scale */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--dark);
    color: var(--primary); /* Changed to brand yellow for visibility */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

/* --- Botón WhatsApp --- */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    color: #fff;
}

.footer-credits {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.footer-credits a {
    color: var(--primary);
}

/* --- Mobile Responsive --- */

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .item-large,
    .item-medium,
    .item-small {
        grid-column: span 1;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-info,
    .contact-form-container {
        padding: 40px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}