/* ========================================
   COMPONENT STYLES
   ======================================== */

/* Header Component */
.header-nav {
    transition: all 0.3s ease;
}

.header-nav a {
    position: relative;
    transition: color 0.3s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0cc0df;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Hero Section Component */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    z-index: 10;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    padding: 1rem;
    padding-top: 20rem !important;
    pointer-events: none;
}

.hero-interactive {
    pointer-events: auto;
}

.gradient-text {
    color: #000000 !important;
    font-weight: bold;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
}

/* Card Components */
.benefit-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.15) 0%, rgba(255, 0, 213, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card > * {
    position: relative;
    z-index: 2;
}

/* Gradient card backgrounds for IA Services cards */
.service-card-inner {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.93) 0%, rgba(252,252,252,0.96) 50%, rgba(247,247,247,0.98) 100%);
    pointer-events: none;
    z-index: 1;
}

.service-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.09) !important;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(147, 42, 255, 0.08) 0%, rgba(72, 161, 242, 0.06) 33%, rgba(147, 42, 255, 0.07) 66%, rgba(156, 160, 167, 0.06) 100%);
    pointer-events: none;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.14) 0%, rgba(255, 0, 213, 0.12) 100%);
    opacity: 1;
    transition: background 0.4s ease;
    z-index: 2;
}

.service-card:hover::before {
    background: linear-gradient(135deg, rgba(255, 0, 213, 0.12) 0%, rgba(12, 192, 223, 0.14) 100%);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card h3 {
    color: white !important;
}

.service-card p,
.service-card li {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Button Components */
.btn-primary {
    background-color: #0cc0df;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0ab4d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 192, 223, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0cc0df;
    padding: 0.75rem 1.5rem;
    border: 2px solid #0cc0df;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #0cc0df;
    color: white;
    transform: translateY(-2px);
}

/* CTA Section Button */
.gradient-bg a,
.cta-gradient-bg a {
    background-color: black !important;
    color: white !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.gradient-bg a:hover,
.cta-gradient-bg a:hover {
    background-color: #374151 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Nosotros Section - Centered Layout */
#nosotros {
    text-align: center !important;
}

#nosotros .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

#nosotros .flex {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
}

#nosotros .md\:w-1\/2 {
    text-align: center !important;
    margin: 0 auto !important;
}

#nosotros .md\:w-1\/2:first-child {
    margin-bottom: 2rem !important;
}

#nosotros .md\:w-1\/2:last-child {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}


#nosotros .flex.space-x-4 {
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

/* Cloudflare Turnstile Captcha */
.cf-turnstile {
    margin: 0 auto !important;
    display: block !important;
    width: fit-content !important;
}

.cf-turnstile iframe {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Form Components */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #0cc0df;
    box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #0cc0df;
    box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.1);
}

/* Logo Carousel Component */
.logos-carousel {
    position: relative;
    overflow: visible;
    width: 100%;
    height: 60px;
    margin-top: 1rem;
}

.logos-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 1rem;
    align-items: center;
}

.logo-item {
    flex-shrink: 0;
    height: 60px;
    min-width: 100px;
    max-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0 0.25rem;
}

.logo-item:hover {
    opacity: 1;
}

.logo-item img {
    max-height: 60px;
    max-width: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Pausar animación en hover */
.logos-carousel:hover .logos-track {
    animation-play-state: paused;
}

/* Swiper Component */
.swiper {
    width: 100%;
    height: 100px;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.swiper-slide img {
    display: block;
    width: auto;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}


/* Footer Component */
.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-social-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: white;
    transform: translateY(-2px);
}

/* Testimonial Component */
.testimonial-card {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    color: #374151;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #1f2937;
}

.testimonial-position {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Solution Cards with Spotlight Effect */
.solution-card {
    position: relative;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(12, 192, 223, 0.15) 0%, rgba(255, 0, 213, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-8px);
}

.solution-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.solution-card:hover img {
    transform: scale(1.05);
}

.solution-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
    transition: color 0.3s ease;
}

.solution-card:hover h3 {
    color: #0cc0df;
}

.solution-card p {
    color: #6b7280;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.solution-card:hover p {
    color: #374151;
}

/* Spotlight overlay for better effect */
.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(12, 192, 223, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.solution-card:hover::after {
    opacity: 1;
}
