:root {
    --eurotaller-blue: #273d98;
    --eurotaller-blue-dark: #1e2f75;
    --eurotaller-green: #0c9175;
    --eurotaller-green-dark: #096d59;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--eurotaller-blue) 0%, var(--eurotaller-green) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(39, 61, 152, 0.18);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, var(--eurotaller-blue-dark) 0%, var(--eurotaller-green-dark) 100%);
    color: #fff;
}

.hover-link {
    transition: color 0.3s ease;
}

.hover-link:hover {
    color: var(--eurotaller-blue) !important;
}

.hover-card-blue,
.hover-card-green {
    transition: all 0.3s ease;
    border-color: rgba(191, 219, 254, 0.55);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.hover-card-blue:hover,
.hover-card-green:hover {
    border-color: rgba(39, 61, 152, 0.35) !important;
    box-shadow: 0 20px 25px -5px rgba(39, 61, 152, 0.12) !important;
}

.faq-item {
    transition: all 0.3s ease;
    border-color: rgba(191, 219, 254, 0.55);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.faq-item:hover:not(.active) {
    border-color: rgba(39, 61, 152, 0.25) !important;
}

.faq-item.active {
    border-color: rgba(39, 61, 152, 0.4) !important;
}

.faq-title {
    transition: color 0.3s ease;
}

.faq-item:hover:not(.active) .faq-title {
    color: var(--eurotaller-blue);
}

.faq-title.active {
    color: var(--eurotaller-blue);
}

.faq-content {
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.hover-cta-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 61, 152, 0.22);
}

.faq-contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    background: linear-gradient(90deg, #0f1f4f 0%, #273d98 52%, #0c9175 100%);
    box-shadow: 0 12px 30px rgba(15, 31, 79, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
    outline: none;
}

.faq-contact-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 18px 40px rgba(15, 31, 79, 0.4);
    color: #ffffff;
}

.faq-contact-cta:focus-visible {
    box-shadow: 0 0 0 3px rgba(12, 145, 117, 0.4), 0 18px 40px rgba(15, 31, 79, 0.4);
}

.faq-contact-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.faq-contact-cta:hover .faq-contact-cta__icon {
    background: rgba(255, 255, 255, 0.2);
}

.faq-contact-cta__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.faq-contact-cta__label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 767px) {
    .faq-contact-cta {
        width: 100%;
        justify-content: center;
    }

    .faq-contact-cta__content {
        align-items: center;
    }
}

.animate-infinite-marquee {
    animation: infinite-marquee 120s linear infinite;
    will-change: transform;
}

.mask-gradient {
    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);
}

@keyframes infinite-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

#inicio,
#servicios,
#nosotros,
#testimonios,
#faq,
#contacto,
#aliados {
    color: #111827;
}

/* Secciones con degradado: Aplicando los valores hexadecimales exactos requeridos */
#inicio,
#servicios,
#faq,
#aliados {
    background: linear-gradient(180deg, #e7fefd 0%, #3eaeaa 100%) !important;
}

/* Secciones blancas: Eliminación de la transparencia previa para forzar alternancia y máxima legibilidad */
#nosotros,
#testimonios,
#contacto {
    background: #ffffff !important;
}

#inicio .absolute.inset-0 img {
    opacity: 0.1 !important;
}

#inicio .absolute.inset-0 > div {
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.95), rgba(207, 250, 254, 0.9), rgba(209, 250, 229, 0.8)) !important;
}

#inicio .text-white,
#servicios .text-white,
#nosotros .text-white,
#faq .text-white,
#contacto .text-white {
    color: #111827 !important;
}

#inicio .text-zinc-400,
#servicios .text-zinc-400,
#nosotros .text-zinc-400,
#faq .text-zinc-400,
#contacto .text-zinc-400,
#inicio .text-zinc-500,
#servicios .text-zinc-500,
#nosotros .text-zinc-500,
#faq .text-zinc-500,
#contacto .text-zinc-500,
#inicio .text-zinc-600,
#servicios .text-zinc-600,
#nosotros .text-zinc-600,
#faq .text-zinc-600,
#contacto .text-zinc-600 {
    color: #4b5563 !important;
}

#inicio .bg-zinc-900,
#inicio .bg-zinc-950,
#servicios .bg-zinc-900,
#servicios .bg-zinc-950,
#nosotros .bg-zinc-800,
#nosotros .bg-zinc-900,
#faq .bg-zinc-900,
#faq .bg-zinc-950,
#contacto .bg-zinc-800,
#contacto .bg-zinc-900,
#contacto .bg-zinc-950 {
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
    border-color: rgba(191, 219, 254, 0.6) !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08) !important;
    backdrop-filter: blur(14px);
}

#inicio .border-zinc-800,
#servicios .border-zinc-800,
#nosotros .border-zinc-800,
#faq .border-zinc-800,
#contacto .border-zinc-800,
#inicio .border-zinc-700,
#servicios .border-zinc-700,
#nosotros .border-zinc-700,
#faq .border-zinc-700,
#contacto .border-zinc-700 {
    border-color: rgba(191, 219, 254, 0.6) !important;
}

#inicio [data-lucide="arrow-right"],
#servicios [data-lucide="arrow-right"],
#nosotros [data-lucide="arrow-right"],
#faq [data-lucide="arrow-right"],
#contacto [data-lucide="arrow-right"] {
    color: var(--eurotaller-blue);
}

#inicio .bg-zinc-800\/50,
#servicios .bg-zinc-800\/50,
#nosotros .bg-zinc-800\/50,
#faq .bg-zinc-800\/50,
#contacto .bg-zinc-800\/50 {
    background-color: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(191, 219, 254, 0.55) !important;
}

#inicio .text-orange-500,
#servicios .text-orange-500,
#nosotros .text-orange-500,
#faq .text-orange-500,
#contacto .text-orange-500 {
    color: var(--eurotaller-blue) !important;
}

#inicio .bg-orange-500\/10,
#servicios .bg-orange-500\/10,
#nosotros .bg-orange-500\/10,
#faq .bg-orange-500\/10,
#contacto .bg-orange-500\/10 {
    background-color: rgba(39, 61, 152, 0.12) !important;
}

#inicio .bg-orange-500,
#servicios .bg-orange-500,
#nosotros .bg-orange-500,
#faq .bg-orange-500,
#contacto .bg-orange-500 {
    background-color: var(--eurotaller-blue) !important;
}

#inicio .bg-orange-600,
#servicios .bg-orange-600,
#nosotros .bg-orange-600,
#faq .bg-orange-600,
#contacto .bg-orange-600 {
    background-color: var(--eurotaller-blue-dark) !important;
}

#faq [data-faq-item] {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(191, 219, 254, 0.55) !important;
}

#faq [data-faq-question] {
    color: #111827 !important;
}

#faq [data-faq-icon] {
    color: var(--eurotaller-blue) !important;
}

#faq [data-faq-answer] .border-t {
    border-top-color: rgba(191, 219, 254, 0.6) !important;
}

#faq [data-faq-answer] p,
#contacto p,
#contacto span,
#contacto h3,
#contacto h2 {
    color: #374151;
}

#contacto iframe {
    filter: saturate(0.95) contrast(1.02);
}

#marquee-track .bg-zinc-900,
#marquee-track .bg-zinc-950 {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(191, 219, 254, 0.6) !important;
}

#marquee-track .text-white {
    color: #111827 !important;
}

#marquee-track .text-zinc-400,
#marquee-track .text-zinc-500 {
    color: #4b5563 !important;
}

#marquee-track [data-lucide="star"] {
    color: #f59e0b;
}

@media (max-width: 767px) {
    /* 10vw daba ~40px a 390px y el titular ocupaba media pantalla. */
    #inicio h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    #inicio .grid-cols-3 {
        gap: 1rem;
    }
}@keyframes infinite-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-infinite-marquee {
    animation: infinite-marquee 120s linear infinite;
    will-change: transform;
}

.mask-gradient {
    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);
}

#testimonios .text-white,
#aliados .text-white {
    color: #111827 !important;
}

#testimonios .text-zinc-400,
#testimonios .text-zinc-500,
#testimonios .text-zinc-600,
#aliados .text-zinc-400,
#aliados .text-zinc-500,
#aliados .text-zinc-600 {
    color: #4b5563 !important;
}

#testimonios .bg-zinc-900,
#testimonios .bg-zinc-950,
#aliados .bg-zinc-800,
#aliados .bg-zinc-900,
#aliados .bg-zinc-950 {
    background-color: rgba(255, 255, 255, 0.9) !important;
    background-image: none !important;
    border-color: rgba(191, 219, 254, 0.6) !important;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08) !important;
    backdrop-filter: blur(14px);
}

#testimonios .bg-zinc-800\/50,
#aliados .bg-zinc-800\/50 {
    background-color: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(191, 219, 254, 0.55) !important;
}

#testimonios .border-zinc-800,
#testimonios .border-zinc-700,
#aliados .border-zinc-800,
#aliados .border-zinc-700 {
    border-color: rgba(191, 219, 254, 0.6) !important;
}

#testimonios .text-orange-500,
#aliados .text-orange-500 {
    color: var(--eurotaller-blue) !important;
}

#testimonios .bg-orange-500\/10,
#aliados .bg-orange-500\/10 {
    background-color: rgba(39, 61, 152, 0.12) !important;
}

#testimonios .bg-orange-500,
#aliados .bg-orange-500 {
    background-color: var(--eurotaller-blue) !important;
}

#testimonios .bg-orange-600,
#aliados .bg-orange-600 {
    background-color: var(--eurotaller-blue-dark) !important;
}

#testimonios [class*="bg-gradient-to-r"],
#aliados [class*="bg-gradient-to-r"],
#testimonios [class*="bg-gradient-to-br"],
#aliados [class*="bg-gradient-to-br"] {
    background-image: linear-gradient(135deg, var(--eurotaller-blue) 0%, var(--eurotaller-green) 100%) !important;
}

#testimonios [class*="bg-gradient-to-r"] .text-white,
#aliados [class*="bg-gradient-to-r"] .text-white,
#testimonios [class*="bg-gradient-to-br"] .text-white,
#aliados [class*="bg-gradient-to-br"] .text-white {
    color: #ffffff !important;
}

#testimonios [data-lucide="arrow-right"],
#aliados [data-lucide="arrow-right"] {
    color: var(--eurotaller-blue);
}


#testimonios [data-lucide="star"],
#aliados [data-lucide="star"] {
    color: #f59e0b !important;
    fill: #f59e0b !important;
}

#aliados .group:hover {
    box-shadow: 0 20px 25px -5px rgba(39, 61, 152, 0.12) !important;
    border-color: rgba(39, 61, 152, 0.35) !important;
}
#aliados .via-zinc-700 {
    --tw-gradient-stops: transparent, rgba(191, 219, 254, 0.6), transparent !important;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.service-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    min-height: 26rem;
    perspective: 1600px;
    border-radius: 1.5rem;
    text-align: left;
    outline: none;
}

.service-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(39, 61, 152, 0.25);
}

.service-card-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1);
    will-change: transform;
}

.service-card.is-flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.5rem;
}

.service-card-back {
    transform: rotateY(180deg);
}

/* Mejorar legibilidad del reverso: texto más blanco y ligeramente mayor */
.service-card-back .relative.z-10,
.service-card-back h3,
.service-card-back p,
.service-card-back .service-card-hint,
.service-card-back span,
.service-card-back i {
    color: #ffffff !important;
}

.service-card-back h3 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.2;
    font-weight: 700;
}

.service-card-back p {
    font-size: 1rem; /* 16px */
    line-height: 1.65;
    opacity: 0.95; /* ensure high contrast against gradient */
}

.service-card-back .service-card-hint {
    color: rgba(255,255,255,0.95) !important;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.service-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #273d98;
}

@media (prefers-reduced-motion: reduce) {
    .service-card-inner {
        transition-duration: 0.01ms;
    }
}

/* Texto solo para lectores de pantalla (Tailwind precompilado no incluye sr-only). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


