@font-face {
    font-family: 'Montserrat';
    src: url('fuente-montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Octosquare';
    src: url('fuente-tt-octosquares/tt-octosquares-variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Colors based on presentation */
    --color-bg: #FFFFFF;
    /* Pure White background */
    --color-bg-alt: #DDDCDD;
    /* Gray as requested for intermediate bars */
    --color-header: #DDDCDD;
    /* Gray for header and footer */

    --color-primary: #0A1128;
    /* Deep Navy Blue from logo */
    --color-accent: #0095DA;
    /* Primary brand blue */
    --color-accent-hover: #007BB5;

    --color-text: #333333;
    /* Dark Anthracite Gray for main body text */
    --color-text-muted: #555555;
    /* Slightly lighter gray for secondary text */
    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Glassmorphism (Adjusted for light theme) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'TT Octosquare', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: url('fondo-body.jpg') no-repeat center center / cover fixed;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--color-accent);
    font-family: var(--font-heading);
    /* Apply TT Octosquares to highlights */
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 149, 218, 0.1);
    color: var(--color-accent);
    border-radius: 50px;
    font-family: var(--font-heading);
    /* using TT Octosquare for highlights */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(0, 149, 218, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    gap: 0.5rem;
    font-family: var(--font-heading);
    /* Update to TT Octosquares since it's a prominent highlight */
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(10, 17, 40, 0.2);
}

.btn-primary:hover {
    background-color: #172A5C;
    /* Slightly lighter navy */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 17, 40, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
    padding: 1rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-base);
    background: transparent;
}

.header.scrolled {
    background: rgba(221, 220, 221, 0.95);
    /* #DDDCDD with opacity */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 65px;
    /* Increased by 30% for better visibility */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 600;
    font-size: 1.14rem;
    /* Increased size by 20% (from 0.95rem) */
    font-family: var(--font-heading);
    /* Assigned font TT Octosquare */
    color: var(--color-text);
    /* Ensure contrast on #DDDCDD */
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-base);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
    background: url('imagen-fondo-gris.png') no-repeat center center / cover;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glass {
    padding: 0;
    /* Remove padding to avoid gaps */
    width: 100%;
    max-width: 270px;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;

    /* OVERRIDES TO REMOVE GLASS EFFECTS FOR A FLOATING IMAGE */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.hero-glass::before {
    display: none;
    /* Removes the top shiny line from .glass-card */
}

.hero-glass:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 0;
    /* Removing rounding to ensure raw image shape */
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Helps integrate the image perfectly into the #FBFAFB background */
}

.glow-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(10, 17, 40, 0.1);
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(0, 149, 218, 0.1);
    bottom: -50px;
    left: 50px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections General */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
}

.section-title+p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

/* Problems Agitator */
.problem-section {
    /* background: transparent; */
    position: relative;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--color-bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition-base);
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 149, 218, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.problem-icon {
    font-size: 5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 149, 218, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 149, 218, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 17, 40, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(10, 17, 40, 0.1);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    min-height: 3.5rem;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.service-benefit i {
    color: #4ade80;
    font-size: 1.2rem;
    margin-top: 2px;
}

.service-features {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.service-features li i {
    color: var(--color-accent);
}

.service-features span {
    color: var(--color-text);
    font-weight: 600;
}

.service-price {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.service-price .price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.service-price strong {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* Results Section */
.results-section {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    margin-top: -3rem;
}

.results-wrapper {
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.result-item {
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 90, 54, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin: 0 auto 1.5rem;
    position: relative;
    transition: var(--transition-base);
}

.result-item:hover .result-icon {
    transform: scale(1.1);
    background: rgba(255, 90, 54, 0.15);
}

.result-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.result-item p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.result-item strong {
    color: var(--color-primary);
}

.roi-note {
    text-align: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem;
    background: rgba(255, 90, 54, 0.05);
    border-radius: 8px;
    display: inline-block;
    margin: 0 auto;
    width: 100%;
}

/* About Section */
.about-section {
    padding: var(--space-xl) 0;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.values-flex {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* Contact Section */
.contact-section {
    background-color: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.direct-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.direct-item i {
    font-size: 2.5rem;
    color: #25D366;
    /* WhatsApp brand color */
}

.direct-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.direct-item strong {
    font-size: 1.3rem;
    color: var(--color-primary);
}

.form-glass {
    padding: 3rem;
    border-top: 3px solid var(--color-accent);
    background: var(--color-bg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    accent-color: var(--color-accent);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-header);
    /* Changed to #DDDCDD */
    padding: 4rem 0 0;
    color: var(--color-text);
    /* Adjusted text for light background */
}

.footer .logo-text,
.footer .logo-sub {
    color: var(--color-primary);
    /* if using text logo fallback */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    /* allows wrapping on very small screens */
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-right {
    display: flex;
    gap: 4rem;
    text-align: left;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-heading {
    color: var(--color-text);
    /* Gris Antracita corporativo */
    font-family: var(--font-heading);
    /* TT Octosquare */
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-item {
    color: var(--color-text);
    /* Gris Antracita corporativo */
    font-size: 0.95rem;
    font-family: var(--font-heading);
    /* TT Octosquare */
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--color-text);
    /* Gris Antracita corporativo */
    font-family: var(--font-heading);
    /* TT Octosquare */
    font-size: 0.95rem;
    text-decoration: none;
    /* Without unnecessary underlines */
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    /* Slightly darker than #DDDCDD for contrast */
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: #FFF;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--color-bg);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.close-modal {
    color: var(--color-text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {

    .hero-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text .subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .hero-glass {
        margin: 0 auto;
        max-width: 200px;
    }

    .problems-grid,
    .services-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .results-wrapper {
        padding: 3rem 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 11, 25, 0.97);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 2px solid var(--color-accent);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a:not(.btn) {
        color: #FFFFFF;
        font-size: 1rem;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a:not(.btn):hover {
        color: var(--color-accent);
    }

    .nav-links a:not(.btn)::after {
        display: none;
    }

    .nav-links .btn.nav-btn {
        margin-top: 1.2rem;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .results-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-glass {
        padding: 2rem;
    }
}