/* ========================================
   PROCURADOR EN MÁLAGA - PREMIUM DESIGN
   Raquel Díaz Hernández
======================================== */

/* === MATERIAL ICONS OPTIMIZATION === */
/* Material Icons con font-display: swap para mejor FCP */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* === ROOT VARIABLES === */
:root {
    /* Colors - Paleta Profesional Elegante */
    --primary: #334155;
    --primary-dark: #1e293b;
    --primary-light: #475569;
    --secondary: #0891b2;
    --secondary-dark: #0e7490;
    --accent: #14b8a6;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --text-dark: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    
    /* Gradients - Modernos y Elegantes */
    --gradient-primary: linear-gradient(135deg, #334155 0%, #475569 100%);
    --gradient-secondary: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
    --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    
    /* Shadows - Más Suaves */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 12px 24px -6px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography - Profesional y Legible */
    --font-primary: 'Lato', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Merriweather', Georgia, 'Times New Roman', serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', 'Lato Fallback', var(--font-primary);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font fallbacks con metrics matching */
@font-face {
    font-family: 'Lato Fallback';
    src: local('Arial');
    size-adjust: 97%;
    ascent-override: 99%;
    descent-override: 20%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Merriweather Fallback';
    src: local('Georgia');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 25%;
    line-gap-override: 0%;
}

/* CSS Containment para mejor rendimiento */
section {
    contain: layout style;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    position: relative;
    contain: layout style;
}

/* === FLOATING ACTION BUTTONS === */
.whatsapp-float,
.call-float {
    position: fixed;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--white);
    z-index: 9999;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    animation: pulse 2s infinite;
}

.whatsapp-float {
    bottom: 30px;
    background: #25D366;
}

.call-float {
    bottom: 110px;
    background: var(--secondary);
}

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 58, 95, 0);
    }
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.3rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
    color: #64748b;
}

.logo-text {
    color: #475569;
    font-weight: 600;
}

.logo-highlight {
    color: #334155;
    font-weight: 700;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem;
    }
    .logo i {
        font-size: 1.5rem;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: var(--spacing-xs);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    overflow: hidden;
    padding: 100px 0 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(8, 145, 178, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

.hero-container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-family: 'Merriweather', 'Merriweather Fallback', var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-title-line {
    display: block;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.hero-title-name {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #ffffff;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-subtitle i {
    color: var(--secondary);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
}

.trust-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animaciones eliminadas para prevenir CLS */

/* === BUTTONS === */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.95rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--secondary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* === STATS SECTION === */
.stats-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
}

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

.stat-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* === SECTION HEADERS === */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* === ABOUT SECTION === */
.about-section {
    background: var(--light);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
}

.about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.about-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.about-features {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Estilos de imagen removidos - imagen solo para SEO */

/* === SERVICES SECTION === */
.services-section {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

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

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.service-features {
    list-style: none;
    display: grid;
    gap: var(--spacing-xs);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.service-features i {
    color: var(--accent);
    font-size: 0.8rem;
}

.services-cta {
    margin-top: var(--spacing-2xl);
}

.cta-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-2xl);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-2xl);
}

.cta-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

/* === WHY SECTION === */
.why-section {
    background: var(--light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.why-card {
    position: relative;
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.why-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(30, 58, 95, 0.08);
    font-family: var(--font-display);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--accent);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.why-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* === TESTIMONIALS === */
.testimonials-section {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--light);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-stars {
    color: #14b8a6;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info strong {
    display: block;
    color: var(--dark);
    font-size: 1.05rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* === FAQ === */
.faq-section {
    background: var(--light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: color var(--transition-base);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--primary);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.contact-info {
    display: grid;
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--light);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-card-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-card-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
}

.contact-link {
    display: inline-block;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
}

/* Form Styles */
.form-card {
    background: var(--light);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
}

.form-card > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.form-group i {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

/* Map */
.contact-map {
    text-align: center;
}

.contact-map h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* === CTA BANNER === */
.cta-banner {
    background: var(--gradient-dark);
    padding: var(--spacing-2xl) 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

/* === FOOTER === */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-logo i {
    font-size: 2.5rem;
    color: var(--accent);
}

.footer-logo h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: var(--spacing-sm) 0;
}

.footer-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.15);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.8;
    margin: var(--spacing-md) 0;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
}

.footer-links,
.footer-contact {
    list-style: none;
    display: grid;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--secondary);
    margin-top: 2px;
    font-size: 1.1rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-bottom-content {
    margin-bottom: var(--spacing-md);
}

.footer-bottom-content p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-legal span {
    opacity: 0.5;
}

.footer-seo {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: var(--spacing-sm);
    line-height: 1.6;
}

/* === SCROLL TO TOP === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    #navList {
        position: fixed !important;
        top: 70px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        backdrop-filter: blur(10px) !important;
        flex-direction: column !important;
        padding: 3rem !important;
        gap: 1.5rem !important;
        -webkit-transition: left 0.3s ease !important;
        transition: left 0.3s ease !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: flex !important;
    }
    
    #navList.active {
        left: 0 !important;
    }
    
    #mobileMenuBtn {
        display: block !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .services-grid,
    .why-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float,
    .call-float {
        width: 50px;
        height: 50px;
        right: 20px;
        font-size: 1.5rem;
    }
    
    .call-float {
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

/* === CONTENIDO ORIGINAL SECTION (SEO) === */
.content-original-section {
    background: var(--white);
    padding: var(--spacing-2xl) 0;
}

.content-original-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--light);
    padding: var(--spacing-2xl);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.content-original-box h2,
.content-original-box h3 {
    font-family: var(--font-display);
    color: var(--dark);
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.content-original-box h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.content-original-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: var(--spacing-xl);
}

.content-original-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.content-original-box ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.content-original-box ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.content-original-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.content-original-box a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.original-highlight {
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.original-highlight h2 {
    color: var(--white);
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.8rem;
}

.original-highlight p {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.original-intro {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    color: var(--dark);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    border-left: 5px solid var(--accent);
}

.original-intro p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
}

.original-contact-box {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 2px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.original-contact-box p {
    margin-bottom: var(--spacing-sm);
}

.original-contact-box ul {
    list-style: none;
    padding-left: 0;
}

.original-contact-box ul li {
    padding-left: var(--spacing-md);
    position: relative;
}

.original-contact-box ul li::before {
    content: '📞';
    position: absolute;
    left: 0;
}

.separator-line {
    border: none;
    border-top: 3px solid var(--border);
    margin: var(--spacing-xl) 0;
}

.cta-original {
    background: var(--accent);
    color: var(--white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    text-align: center;
    margin-top: var(--spacing-xl);
}

.cta-original h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.6;
}

.cta-original a {
    color: var(--white);
    text-decoration: underline;
}

.cta-original a:hover {
    color: var(--secondary);
}

/* === LEGAL PAGES === */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.legal-page {
    padding: var(--spacing-2xl) 0;
    background: var(--light);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.legal-section {
    margin-bottom: var(--spacing-2xl);
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--border);
}

.legal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.legal-section ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.legal-section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.legal-section a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.legal-section a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.legal-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border);
}

.legal-footer p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.legal-footer ul {
    list-style: none;
    padding-left: 0;
    margin-top: var(--spacing-md);
}

.legal-footer ul li {
    padding: var(--spacing-xs) 0;
    font-size: 1rem;
}

.legal-footer hr {
    margin: var(--spacing-lg) 0;
    border: none;
    border-top: 1px solid var(--border);
}

.back-to-home {
    text-align: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.back-to-home .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* === AOS ANIMATION OPTIMIZADA === */
.aos-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.aos-init.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .whatsapp-float,
    .call-float,
    .scroll-to-top,
    .hero-scroll,
    .cta-banner {
        display: none;
    }
}
