/* Landing Page Custom Styles */

/* Custom color definitions using CSS variables for consistency */
:root {
    --primary: #4bc7a1;
    --primary-hover: #3ab592;
    --secondary: #10243c;
    --background-light: #f6f8f7;
    --background-dark: #10221c;
    --text-main: #111816;
    --text-secondary: #61897d;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom animation for pulse effect */
@keyframes pulse-custom {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse-custom {
    animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient text for hero section */
.bg-gradient-text {
    background: linear-gradient(to right, var(--primary), #2c9e7e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text-pyme {
    color: #4bc7a1;
}

.hero-pyme-outline {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.hero-pyme-outline::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    -webkit-text-stroke: 1px #10243c;
    z-index: -1;
    pointer-events: none;
}

.gradient-overlay {
    background: linear-gradient(180deg, rgba(16, 36, 60, 0.05) 0%, rgba(16, 36, 60, 0) 100%);
}

.hero-mask {
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.1) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 1) 100%);
}

.hero-main-title {
    font-size: 2.15rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.contact-input {
    color: rgba(16, 36, 60, 0.95);
}

.contact-input::placeholder {
    color: rgba(16, 36, 60, 0.62);
}

@media (min-width: 768px) {
    .hero-main-title {
        font-size: 3rem;
    }
}

.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cases-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.footer-link-list li {
    min-height: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-link-list a {
    line-height: 1.25rem;
}

.cta-rocket-icon {
    font-size: 6rem !important;
    line-height: 1;
}

/* Hover effects for service cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Icon hover effect */
.service-icon {
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Background pattern for CTA section */
.bg-pattern-dots {
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Smooth transitions for links */
a {
    transition: color 0.2s ease;
}

/* Custom button styles */
.btn-primary-custom {
    background-color: var(--primary);
    color: var(--secondary);
    font-weight: bold;
    padding: 0.625rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(75, 199, 161, 0.3);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 20px rgba(75, 199, 161, 0.5);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
}

/* Loading optimization - prevent layout shift */
img:not(.hero-bg-image) {
    max-width: 100%;
    height: auto;
}

/* Accessibility improvements */
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Backdrop blur support check */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-custom {
        backdrop-filter: blur(10px);
    }
}

/* ============================================================
   SCROLL ANIMATION SYSTEM (AOS — Animate On Scroll)
   ============================================================ */

.aos-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.aos-item[data-delay="100"] { transition-delay: 0.10s; }
.aos-item[data-delay="200"] { transition-delay: 0.20s; }
.aos-item[data-delay="300"] { transition-delay: 0.30s; }
.aos-item[data-delay="400"] { transition-delay: 0.40s; }

.aos-item.aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   "CÓMO TRABAJAMOS" PROCESS SECTION
   ============================================================ */

.process-connector {
    display: none;
}

@media (min-width: 768px) {
    .process-connector {
        display: block;
        flex: 1;
        height: 2px;
        border-top: 2px dashed rgba(75, 199, 161, 0.35);
        margin-top: -1.5rem;
        margin-inline: -0.5rem;
    }
}

.process-step-number {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #4bc7a1;
    color: #10243c;
    font-size: 1.25rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(75, 199, 161, 0.18);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.process-step:hover .process-step-number {
    box-shadow: 0 0 0 10px rgba(75, 199, 161, 0.25);
    transform: scale(1.07);
}

/* ============================================================
   ENHANCED SERVICE CARDS
   ============================================================ */

.service-card-glow:hover {
    box-shadow: 0 0 0 1px rgba(75, 199, 161, 0.25),
                0 8px 32px rgba(75, 199, 161, 0.12);
}

/* ============================================================
   HEADER CTA BUTTON
   ============================================================ */

.header-cta-btn {
    background: #4bc7a1;
    color: #10243c;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.5rem 1.125rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 0 14px rgba(75, 199, 161, 0.35);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.header-cta-btn:hover {
    background: #3ab592;
    box-shadow: 0 0 22px rgba(75, 199, 161, 0.55);
    transform: scale(1.03);
}

/* ============================================================
   HERO SOCIAL PROOF LINE
   ============================================================ */

.hero-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(75, 199, 161, 0.12);
    border: 1px solid rgba(75, 199, 161, 0.3);
    border-radius: 9999px;
    padding: 0.35rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #10243c;
}

.hero-social-proof .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4bc7a1;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

/* ============================================================
   ANIMATE-PULSE-SLOW (used in CTA section)
   ============================================================ */

@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ============================================================
   HERO SOCIAL PROOF — variante fondo oscuro
   ============================================================ */

.hero-social-proof-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(75, 199, 161, 0.15);
    border: 1px solid rgba(75, 199, 161, 0.4);
    border-radius: 9999px;
    padding: 0.35rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
}

.hero-social-proof-dark .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4bc7a1;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */

.testimonial-quote-mark {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(75, 199, 161, 0.2);
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.testimonial-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
}
