:root {
    --primary-color: #000000;
    --accent-color: #f59e0b;
    --primary-hover: #1d4ed8;
    --secondary-color: #666;
    --text-color: #090909;
    --bg-color: #ffffff;
    --light-bg: #f1f5f9;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
    --spacing-unit: 1rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}

.main-nav ul {
    display: none;
}

.main-nav a {
    font-weight: 500;
    color: var(--secondary-color);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Nav Active State */
.main-nav.active ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid #e2e8f0;
}

.main-nav.active ul li {
    margin-bottom: 1rem;
}

.main-nav.active ul li:last-child {
    margin-bottom: 0;
}

/* Hero Section - Mobile First */
.hero {
    padding: 1rem 0 10rem 0;
    position: relative;
    color: #0b1220;
    overflow: hidden;
    background-image: 
        linear-gradient(to bottom, rgba(240, 240, 245, 0.85), rgba(255, 255, 255, 0.75)),
        url('img/bloque-edicios.jpg');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    background-image: url('img/manuel.png');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    /* Mobile positioning - right side */
    top: 15%;
    right: -20px;
    width: 100%;
    height: 100%;
    background-position: right center;
}

/* Second background image - left side */
.hero::after {
    content: "";
    position: absolute;
    background-image: url('img/mano.png');
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    /* Mobile positioning - left side */
    top: 120px;
    left: -10px;
    width: 35%;
    height: 50%;
    background-position: left center;
}

.hero-grid {
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

.hero-content {
    text-align: left;
    padding: 0 1rem;
}

.brand {
    margin-bottom: 0.25rem;
}

.brand-name {
    font-weight: 800;
    font-size: 1.8rem;
    color: #0b0b0b;
    letter-spacing: -0.02em;
    display: block;
    line-height: 1.1;
}

.brand .tm {
    font-size: 0.4rem;
    vertical-align: super;
    margin-left: 1px;
}

.hero .subtitle {
    display: inline;
    font-size: 1rem;
    font-weight: 600;
    color: #0b0b0b;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #0b0b0b;
}

.hero-description {
    display: none;
}

.hero-image {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.35);
}

/* Highlight section with hero-quote inside */
.highlight {
    background-color: var(--accent-color);
    color: #fff;
    position: relative;
    padding: 0;
    border-bottom: 20px solid #0b0b0b;
}

/* Black quote bar - now inside highlight */
.hero-quote {
    background: #0b0b0b;
    color: #fff;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.hero-quote p {
    margin: 0 auto;
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-style: italic;
    padding: 0 1.25rem;
    line-height: 1.6;
}

/* Highlight content section */
.highlight-content {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Bombilla: tamaño responsive
   - Mobile: 55% del contenedor
   - Desktop (>=768px): 15% del contenedor */
.highlight-content img {
    width: 55%;
    max-width: 280px; /* evita tamaños excesivos en pantallas grandes muy estrechas */
    height: auto;
}



.highlight-description {
    font-size: 2.05rem;
    line-height: 1.6;
    color: black;
    margin: 0 auto;
    max-width: 800px;
    font-weight: 500;
}

/* Features / Steps */
.features {
    padding: 3rem 0;
    background-image: 
        linear-gradient(to bottom right, rgba(255, 255, 255, 1.9), rgba(255, 255, 255, 0.8)),
        url(img/papeles.webp);
    background-size: cover;
    background-position: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Phone Contact Card - Floating Button */
.phone-contact-card {
    position: fixed;
    right: 0;
    top: 90%;
    transform: translateY(-50%);
    z-index: 9999;
    background-color: var(--accent-color);
    border-radius: 150px 0 0 150px;
    padding: 10px 10px 10px 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.phone-contact-card:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -6px 6px 25px rgba(0, 0, 0, 0.2);
}
.step-number {
    width: 42px;
    height: 42px;
    background-color: black;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.feature-card {
    display: ruby;
    text-align: left;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}


.phone-icon {
    width: 56px;
    height: 56px;
    background-color: #0b0b0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Subrayado gris y color de selección */
a, .underline {
    text-decoration: underline;
    text-decoration-color: #9CA3AF; /* gris medio */
    -webkit-text-decoration-color: #9CA3AF;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: none;
}

a:hover, .underline:hover {
    text-decoration-color: #6B7280; /* gris más oscuro al pasar */
    -webkit-text-decoration-color: #6B7280;
}

/* Color al seleccionar texto */
::selection {
    background-color: #e5e7eb; /* gris claro */
    color: inherit;
}

.phone-icon svg {
    width: 28px;
    height: 28px;
}

.phone-content {
    text-align: left;
}

.phone-label {
    font-size: 1.1rem;
    font-style: italic;
    color: #0b0b0b;
    margin: 0 0 0.1rem 0;
    font-weight: 500;
    line-height: 1.2;
}

.phone-number {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0b0b0b;
    text-decoration: none;
    display: block;
    letter-spacing: 0.02em;
    line-height: 1;
}

.phone-number:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials {
    background: #fff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/testimonios.svg');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
}

.testimonials > .container {
    position: relative;
    z-index: 1;
}

.testimonials h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

/* Testimonials Slider */
.testimonials-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Mask fade effect on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    padding: 1rem 0;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem)); /* Adjust based on gap/duplication */
    }
}

.testimonial-card {
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    background: #fff;
    width: 350px; /* Fixed width for slider items */
    flex-shrink: 0;
}

/* Remove Grid Media Query */

/* FAQ / Benefits Sections */
.faq-dark {
    background: #000000;
    color: #fff;
    padding: 5rem 0; /* Increased for more height */
    position: relative;
}

.faq-dark::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/reloj.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 550px; /* Even larger */
    background-position: -150px 60%; 
    z-index: 0;
    pointer-events: none;
}

.faq-dark u, 
.faq-dark .underline {
    text-decoration: underline;
    text-decoration-color: #ffffff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.faq-dark .container {
    position: relative;
    z-index: 1;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.faq-icon {
    display: none;
}

.faq-text h3 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.faq-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: inherit;
    text-align: center;
}

/* Orange FAQ Section */
.faq-orange {
    background: var(--accent-color);
    color: #0b0b0b;
    padding: 3rem 0; /* Balanced padding */
    position: relative;
}

/* Removed background ::after element */

.faq-illustration {
    display: block;
    margin: -100PX auto -162PX auto;
    max-width: 450px;
    width: 100%;
    height: auto;
}
.grecaptcha-badge{
    display: none;
}

.faq-orange u, 
.faq-orange .underline {
    text-decoration: underline;
    text-decoration-color: #000000;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.faq-orange .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    .faq-content {
        grid-template-columns: 1fr;
    }

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

    .faq-icon {
        justify-content: center;
    }

    .faq-illustration {
        margin: -50px auto 0 auto; /* Less negative margin on top, no negative on bottom */
        padding-bottom: 2rem; /* Add some breathing room */
    }

    .faq-text h3 {
        font-size: 1.5rem;
    }
}


/* Contact Section */
.contact-section {
    padding: 3rem 0 4rem 0;
    background-color: #0b0b0b;
    color: #fff;
    position: relative;
    z-index: 10000;
}

.contact-header {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-header p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 600px;
}

.mail-icon svg {
    width: 48px;
    height: 48px;
}
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.contact-content h3 {
    font-size: 2rem;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.contact-content > p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 1rem 0;
    line-height: 1.5;
}

/* Call bubble */
.call-bubble {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    background: #0b0b0b;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Form panel */
.form-panel {
    background: var(--accent-color);
    padding: 1.75rem 1.5rem;
    border-radius: 0.85rem;
    box-shadow: var(--shadow-lg);
    margin: 1.5rem 0;
}

.form-panel .form-inner {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0;
}

.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="tel"],
.form-panel input[type="date"],
.form-panel input[type="number"],
.form-panel select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background-color: #fff;
    color: #1e293b;
    appearance: none; /* Removes default arrow on some browsers for selects */
    font-weight: 600;
    font-family: var(--font-family);
}

.form-panel select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-left: 0.25rem;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.currency-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-weight: 600;
}

.form-panel input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.form-panel .checkbox-label {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    text-align: left;
}

.form-panel .btn-primary {
    background: #0b0b0b;
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.form-panel .btn-primary:hover {
    background: #1a1a1a;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    /* Hide default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Custom checkbox styling */
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: 2px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

.checkbox-label input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label span {
    flex: 1;
}

.note {
    margin-top: 1.75rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-style: italic;
    text-align: left;
    line-height: 1.5;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b0b0b;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.input-row {
    display: flex;
    gap: 0.75rem;
}

.input-row input {
    width: 100%;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    background-color: #000000;
    color: #9999;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 10000;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav ul {
        display: flex;
        gap: 2.5rem;
    }
    
    .main-nav.active ul {
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        border: none;
        background: transparent;
    }
    
    .main-nav.active ul li {
        margin-bottom: 0;
    }

    .site-header {
        padding: 1.25rem 0;
    }

    /* Hero Desktop */
    .hero {
        padding: 5rem 0 4rem 0;
        min-height: 90vh;
    }

    .hero::before {
        height: 100%;
        background-size: contain;
    }

    .hero::after {
        top: 300px;
        left: -10px;
        width: 25%;
        height: 55%;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 4rem;
        align-items: start;
        padding-bottom: 0;
    }

    .hero-content {
        text-align: left;
        max-width: 680px;
        padding: 0;
    }

    .brand {
        margin-bottom: 0.5rem;
    }

    .brand-name {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .brand .tm {
        font-size: 0.5rem;
        margin-left: 2px;
    }

    .hero .subtitle {
        display: flex;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 6rem;
        margin-bottom: 2rem;
        line-height: 0.85;
        display: inline-flex;
    }

    .hero-description {
        display: block;
        font-size: 1.25rem;
        max-width: 600px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-description:first-of-type {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .btn {
        padding: 1.1rem 2.25rem;
        font-size: 1.05rem;
    }

    .hero-image {
        display: block;
        position: relative;
        width: 100%;
        min-height: 400px;
    }

    .hero-image img {
        position: absolute;
        right: -10%;
        top: -10%;
        width: 520px;
        max-width: 120%;
        height: auto;
        object-fit: cover;
        border-radius: 0.85rem;
        box-shadow: 0 25px 40px rgba(2,6,23,0.3);
    }

    /* Hero quote inside highlight - desktop */
    .hero-quote {
        padding: 2rem 0;
    }

    .hero-quote p {
        text-align: center;
        margin-left: 0;
        padding-left: 0;
        font-size: 1.15rem;
        line-height: 1.65;
        font-weight: 600;
    }

    /* Highlight content section */
    .highlight-content {
        flex-direction: row;
        justify-content: center;
        padding: 1.5rem 0;
        gap: 2.5rem;
    }

    /* Ajuste del tamaño de la bombilla en escritorio */
    .highlight-content img {
        width: 15%;
        max-width: 160px;
        height: auto;
    }

    .highlight-content::before {
        font-size: 5rem;
    }

    .highlight-description {
        font-size: 2.0rem;
        text-align: left;

        margin: 0;
    }

    /* Features Grid */
    .features {
        padding: 4.5rem 0;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .phone-contact-card {
        padding: 0.25rem 0.5rem 0.25rem 0.25rem;
        gap: 1.5rem;
    }

    .phone-icon {
        width: 70px;
        height: 70px;
    }

    .phone-icon svg {
        width: 36px;
        height: 36px;
    }

    .phone-label {
        font-size: 1.5rem;
    }

    .phone-number {
        font-size: 2rem;
    }

    .feature-card {
        padding: 2.25rem 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-section {
        padding: 5rem 0;
    }

    .contact-content h2 {
        font-size: 3rem;
    }

    .contact-content > p {
        font-size: 1.05rem;
        margin: 1.25rem 0;
    }

    .call-bubble {
        font-size: 0.95rem;
        padding: 0.65rem 1.1rem;
        gap: 0.6rem;
    }

    .form-panel {
        padding: 2rem;
    }

    .form-panel .form-inner {
        gap: 1rem;
    }

    .form-panel input[type="text"],
    .form-panel input[type="email"],
    .form-panel input[type="tel"],
    .form-panel input[type="date"],
    .form-panel input[type="number"],
    .form-panel select {
        padding: 1.05rem 1.5rem;
        font-size: 1rem;
    }

    .note {
        margin-top: 2rem;
        font-size: 0.85rem;
    }

    .site-footer {
        padding: 4rem 0;
    }

    .contact-header {
        flex-direction: row;
        text-align: left;
        justify-content: center;
        gap: 2rem;
    }

    .contact-header p {
        text-align: left;
        margin: 0;
        font-size: 1.25rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-grid {
        gap: 5rem;
    }

    .hero-image img {
        width: 560px;
        right: -5%;
    }
}

/* ============================================
   Form Success Message
   ============================================ */

.form-success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: #f0fdf4;
    border-radius: 1rem;
    border: 1px solid #dcfce7;
    min-height: 400px;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-message h3 {
    font-size: 1.75rem;
    color: #065f46;
    margin-bottom: 1rem;
    font-weight: 700;
}

.form-success-message p {
    font-size: 1.1rem;
    color: #166534;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.cookie-btn-accept:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cookie-btn-reject {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.cookie-link:hover {
    color: #fff;
}

/* Desktop layout for cookie banner */
@media (min-width: 768px) {
    .cookie-banner {
        padding: 2rem;
    }

    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .cookie-text {
        flex: 1;
    }

    .cookie-text h3 {
        font-size: 1.2rem;
    }

    .cookie-text p {
        font-size: 0.95rem;
    }

    .cookie-actions {
        flex-shrink: 0;
    }
}

/* ============================================
   Privacy Information Box
   ============================================ */

.privacy-info-box {
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    text-align: left;
}

.privacy-info-label {
    font-size: 0.9rem;
    color: #0b0b0b;
    margin-bottom: 0.5rem;
}

.privacy-info-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.privacy-info-text strong {
    color: #0b0b0b;
    font-weight: 700;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-link:hover {
    color: var(--primary-hover);
}

/* ============================================
   Cookie Configuration Panel
   ============================================ */

.cookie-config-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-config-panel.visible {
    opacity: 1;
}

.cookie-config-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-config-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.config-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-option {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.cookie-option:hover {
    border-color: var(--primary-color);
}

.config-checkbox {
    display: flex;
    gap: 1rem;
    cursor: pointer;
    align-items: flex-start;
}

.config-checkbox input[type="checkbox"] {
    /* Hide default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    /* Custom checkbox styling */
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.config-checkbox input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

.config-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.config-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.config-checkbox input[type="checkbox"]:focus {
    outline: 2px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

.config-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.config-info {
    flex: 1;
}

.config-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.config-info p {
    font-size: 0.85rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin: 0;
}

.config-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cookie-btn-secondary {
    background-color: #e2e8f0;
    color: var(--text-color);
}

.cookie-btn-secondary:hover {
    background-color: #cbd5e1;
}

.cookie-btn-config {
    background-color: var(--accent-color);
    color: #0b0b0b;
    font-weight: 700;
}

.cookie-btn-config:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .hero .subtitle h1 {
        font-size: 2.5rem;
    }

    .cookie-config-content {
        padding: 1.5rem;
    }

    .config-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        display: flex;
    }
}

/* Mobile: esconder la tarjeta de contacto flotante detrás del footer */

/* Hide phone contact card in contact section and footer */
#contact .phone-contact-card,
.site-footer .phone-contact-card {
    display: none;
}
@media (max-width: 767px) {
    .site-footer {
        position: relative; /* necesario para que z-index funcione */
        z-index: 200; /* por encima de la tarjeta flotante */
    }

    .phone-contact-card {
        z-index: 100; /* más bajo que el footer para quedar oculto */
    }
}

/* Testimonial Typography */
.testimonial-name {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.testimonial-meta {
    color: #10B981; /* Green for verified status */
    font-size: 0.85rem;
    font-weight: 500;
}
