/* ========================================
   RESET Y BASE - VERSIÓN MÓVIL OPTIMIZADA
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* ===== BASE ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== CONTENEDOR ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 50px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}

.bg-light {
    background-color: #f1f5f9;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2563eb;
    background: #dbeafe;
    padding: 5px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: 12px;
    font-size: 0.85rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HEADER FIJO ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 42px;
    width: auto;
}

.logo-text h1 {
    font-size: 0.85rem;
    color: #0f172a;
    margin: 0;
}

.logo-text p {
    font-size: 0.5rem;
    color: #64748b;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

main {
    padding-top: 65px;
}

@media (max-width: 768px) {
    main {
        padding-top: 60px;
    }
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: #1e293b;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 991px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 1001;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
    }

    nav.active {
        right: 0;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .nav-logo {
        font-size: 0.8rem;
        font-weight: 700;
        color: #2563eb;
        letter-spacing: 1px;
    }

    .nav-close {
        width: 40px;
        height: 40px;
        background: #f1f5f9;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .nav-close i {
        font-size: 1.2rem;
        color: #64748b;
    }

    .nav-close:active {
        background: #e2e8f0;
        transform: scale(0.95);
    }

    nav ul {
        flex: 1;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    nav ul li a {
        font-size: 1rem;
        font-weight: 600;
        display: block;
        padding: 12px 0;
        color: #1e293b;
        border-bottom: 1px solid #f1f5f9;
        transition: all 0.2s ease;
    }

    nav ul li a:active {
        color: #2563eb;
        transform: translateX(5px);
    }

    .nav-footer {
        padding: 20px;
        border-top: 1px solid #e2e8f0;
    }

    .nav-whatsapp {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #25D366;
        color: white;
        padding: 12px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }

    .nav-whatsapp:active {
        transform: scale(0.98);
        background: #128C7E;
    }
}

@media (min-width: 992px) {
    .nav-header,
    .nav-close,
    .nav-footer {
        display: none;
    }

    nav ul {
        display: flex;
        gap: 28px;
        align-items: center;
    }

    nav ul li a {
        font-weight: 500;
        font-size: 0.85rem;
        color: #334155;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 8px 0;
        position: relative;
    }

    nav ul li a:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #2563eb;
        transition: width 0.2s ease;
    }

    nav ul li a:hover:after {
        width: 100%;
    }

    nav ul li a:hover {
        color: #2563eb;
    }
}

/* ===== HERO ===== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 100%),
        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.95);
    color: white;
    padding: 8px 16px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 40px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hero h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.6rem;
    }
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: #f59e0b;
    margin: 16px auto;
}

.hero-tagline {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin: 16px 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    border-radius: 40px;
    min-height: 48px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:active {
    background: #1d4ed8;
    transform: scale(0.98);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 220px;
    }
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    font-size: 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    color: white;
}

/* ===== QUIÉNES SOMOS ===== */
.about-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 992px) {
    .about-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.about-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb10;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-content h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.about-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.2rem;
    color: #2563eb;
}

.feature-text h4 {
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.75rem;
    color: #64748b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
}

.stat-card {
    text-align: center;
    padding: 12px 8px;
    background: #f8fafc;
    border-radius: 16px;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2563eb;
}

.stat-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

.stat-progress {
    width: 100%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 3px;
}

.testimonial-quote {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 16px;
    position: relative;
    border-left: 4px solid #2563eb;
}

.testimonial-quote i {
    font-size: 1.6rem;
    color: #2563eb20;
    position: absolute;
    top: 10px;
    right: 12px;
}

.testimonial-quote p {
    font-size: 0.8rem;
    font-style: italic;
}

/* Perfil profesional */
.profile-card.premium {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.profile-image-wrapper {
    position: relative;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    aspect-ratio: 16 / 11;
}

.profile-image.premium {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 5px 10px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 600;
}

.profile-social {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.profile-social a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.profile-social a:active {
    transform: scale(0.95);
}

.profile-info {
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

.profile-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon i {
    font-size: 1.6rem;
    color: white;
}

.profile-title h3 {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.profile-title p {
    font-size: 0.65rem;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.detail-item i {
    font-size: 0.9rem;
    color: #2563eb;
    margin-top: 2px;
}

.detail-item strong {
    display: block;
    font-size: 0.7rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 0.7rem;
    color: #64748b;
}

@media (max-width: 480px) {
    .detail-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.profile-credentials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.credential {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 40px;
    font-size: 0.6rem;
    font-weight: 500;
}

.credential i {
    color: #2563eb;
}

.btn-contact-profile {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    min-height: 48px;
}

.btn-contact-profile:active {
    transform: scale(0.98);
}

/* ===== TIMELINE STATS - STACK VERTICAL PARA MÓVIL ===== */
.timeline-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px 30px;
    background: white;
    border-radius: 50px;
    border: 1px solid #eef2f6;
    flex-wrap: wrap;
}

.timeline-stat {
    text-align: center;
}

.timeline-stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2563eb;
}

.timeline-stat-number span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.timeline-stat-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

.timeline-stat-divider {
    width: 1px;
    height: 35px;
    background: #e2e8f0;
}

/* Responsive para móvil - Stack vertical */
@media (max-width: 550px) {
    .timeline-stats {
        flex-direction: column;
        gap: 16px;
        border-radius: 24px;
        padding: 24px;
    }
    
    .timeline-stat-divider {
        display: none;
    }
    
    .timeline-stat {
        width: 100%;
        padding: 8px;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .timeline-stat:last-child {
        border-bottom: none;
    }
    
    .timeline-stat-number {
        font-size: 1.3rem;
    }
}

.timeline-stat-number span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.timeline-stat-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #60a5fa, #e2e8f0);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #2563eb;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot.dro {
    border-color: #f59e0b;
}

.timeline-dot.emergency {
    border-color: #ef4444;
}

.timeline-dot.current {
    border-color: #10b981;
}

.timeline-content {
    background: white;
    border-radius: 20px;
    padding: 16px;
    margin-left: 45px;
    border: 1px solid #eef2f6;
    width: calc(100% - 45px);
}

.timeline-year span {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.timeline-title h3 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.timeline-title p {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 10px;
}

.timeline-desc ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.75rem;
    color: #475569;
    border-bottom: 1px dashed #f1f5f9;
}

.timeline-desc ul li:last-child {
    border-bottom: none;
}

.timeline-desc ul li i {
    width: 18px;
    color: #2563eb;
    font-size: 0.7rem;
}

/* ===== MISIÓN, VISIÓN Y VALORES ===== */
.mvp-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .mvp-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .mvp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mvp-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.mvp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.mvp-icon i {
    font-size: 1.6rem;
    color: #2563eb;
}

.mvp-vision .mvp-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.mvp-vision .mvp-icon i {
    color: #f59e0b;
}

.mvp-valores .mvp-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.mvp-valores .mvp-icon i {
    color: #10b981;
}

.mvp-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    font-weight: 800;
    color: #e2e8f0;
    opacity: 0.6;
}

.mvp-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mvp-mision h3 {
    color: #1e40af;
}

.mvp-vision h3 {
    color: #b45309;
}

.mvp-valores h3 {
    color: #047857;
}

.mvp-card p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.mvp-line {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 10px auto;
}

.mvp-values-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.mvp-values-list span {
    font-size: 0.65rem;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 30px;
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .services-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-category-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.service-category-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 24px 20px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.service-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.service-category-icon i {
    font-size: 1.6rem;
    color: white;
}

.service-category-header h3 {
    font-size: 1rem;
    color: #0f172a;
}

.service-category-desc {
    font-size: 0.65rem;
    color: #64748b;
}

.service-list-modern {
    list-style: none;
    padding: 20px;
}

.service-list-modern li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #334155;
}

.service-list-modern li:last-child {
    border-bottom: none;
}

.service-list-modern li i {
    color: #10b981;
    font-size: 0.75rem;
    width: 20px;
    flex-shrink: 0;
}

.service-count {
    padding: 12px 20px 20px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.service-count span {
    display: inline-flex;
    font-size: 0.6rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 5px 12px;
    border-radius: 40px;
}

.services-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding: 20px;
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 550px) {
    .services-trust {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        border-radius: 50px;
        padding: 16px 24px;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #475569;
}

.trust-item i {
    color: #2563eb;
    font-size: 0.9rem;
}

/* ===== COBERTURA ===== */
.coverage-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 992px) {
    .coverage-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

.coverage-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.coverage-image {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.coverage-image i {
    font-size: 1.8rem;
    color: white;
}

.coverage-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    padding: 5px 10px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.coverage-card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.coverage-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.coverage-location i {
    color: #f59e0b;
    font-size: 0.8rem;
}

.coverage-location span {
    font-size: 0.75rem;
    color: #64748b;
}

.coverage-map-small {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
}

.coverage-map-small iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.coverage-address {
    font-size: 0.75rem;
    color: #475569;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.coverage-address strong {
    color: #0f172a;
}

.coverage-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tag {
    font-size: 0.6rem;
    color: #334155;
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-tag i {
    font-size: 0.5rem;
    color: #10b981;
}

.coverage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    min-height: 48px;
}

.coverage-btn:active {
    transform: scale(0.98);
}

.coverage-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 550px) {
    .coverage-stats {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 30px;
        border-radius: 50px;
        padding: 16px 24px;
    }

    .coverage-stat-divider {
        width: 1px;
        height: 35px;
        background: #e2e8f0;
    }
}

.coverage-stat-item {
    text-align: center;
}

.coverage-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2563eb;
}

.coverage-stat-label {
    font-size: 0.55rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== CONTACTO ===== */
.contact-grid-premium {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 992px) {
    .contact-grid-premium {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

.contact-info-premium {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.contact-header-premium {
    text-align: center;
    padding: 28px 20px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.contact-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.contact-avatar i {
    font-size: 2rem;
    color: white;
}

.contact-header-premium h3 {
    font-size: 1.1rem;
    color: #0f172a;
}

.contact-title {
    font-size: 0.7rem;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-details-premium {
    padding: 20px;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

@media (min-width: 480px) {
    .contact-detail-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 12px;
    }
}

.contact-detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 1.1rem;
    color: #2563eb;
}

.detail-info strong {
    display: block;
    font-size: 0.8rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.detail-info span {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
}

.btn-whatsapp-premium,
.btn-email-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 40px;
    margin-top: 10px;
    min-height: 40px;
    width: 100%;
}

@media (min-width: 480px) {
    .btn-whatsapp-premium,
    .btn-email-premium {
        width: auto;
        display: inline-flex;
    }
}

.btn-email-premium {
    background: #2563eb;
}

.btn-whatsapp-premium:active,
.btn-email-premium:active {
    transform: scale(0.98);
}

.contact-social-premium {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px 24px;
    border-top: 1px solid #f1f5f9;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.social-link:active {
    background: #2563eb;
    color: white;
    transform: scale(0.95);
}

.contact-map-premium {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.map-header-premium {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.map-header-premium i {
    font-size: 1.6rem;
    color: #2563eb;
}

.map-header-premium h3 {
    font-size: 1rem;
    margin: 8px 0;
}

.map-header-premium p {
    font-size: 0.7rem;
    color: #64748b;
}

.map-container-premium {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.map-container-premium iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-footer-premium {
    padding: 16px 20px 20px;
}

.map-reference-premium {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
}

.map-reference-premium p {
    font-size: 0.7rem;
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-reference-premium i {
    width: 18px;
    color: #2563eb;
}

.btn-map-premium {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    min-height: 48px;
}

.btn-map-premium:active {
    transform: scale(0.98);
}

/* ===== FOOTER ===== */
footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 24px 0;
}

.footer-bottom {
    font-size: 0.6rem;
}

/* ===== ANIMACIONES ===== */
.timeline-item,
.mvp-card,
.service-category-card,
.coverage-card,
.contact-info-premium,
.contact-map-premium,
.cert-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible,
.mvp-card.visible,
.service-category-card.visible,
.coverage-card.visible,
.contact-info-premium.visible,
.contact-map-premium.visible,
.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-content,
.profile-card.premium {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================
   CERTIFICACIONES MEJORADO PARA MÓVIL
======================================== */
.bg-certifications {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cert-card {
    background: white;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
    transform: scale(1.05);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.cert-card:hover .cert-icon i {
    color: white;
}

.cert-icon i {
    font-size: 1.8rem;
    color: #2563eb;
    transition: color 0.3s ease;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb10;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.cert-card h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.cert-entity {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 20px;
}

.cert-details {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    margin: 16px 0;
}

.cert-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.7rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.cert-code:last-child {
    border-bottom: none;
}

.cert-code i {
    color: #2563eb;
    width: 20px;
}

.cert-description {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.5;
    margin: 16px 0;
}

.cert-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .cert-buttons {
        flex-direction: column;
    }
    
    .btn-view-pdf,
    .btn-download-pdf {
        width: 100%;
        justify-content: center;
    }
}

.btn-view-pdf,
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-view-pdf {
    background: #2563eb;
    color: white;
}

.btn-view-pdf:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-view-pdf:active {
    transform: translateY(0);
}

.btn-download-pdf {
    background: #10b981;
    color: white;
}

.btn-download-pdf:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-download-pdf:active {
    transform: translateY(0);
}

.btn-view-pdf.loading,
.btn-download-pdf.loading {
    position: relative;
    color: transparent;
}

.btn-view-pdf.loading::after,
.btn-download-pdf.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.certifications-grid.second-row {
    margin-top: 16px;
}

.certifications-extras {
    margin: 40px 0 30px;
}

.cert-timeline {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.cert-timeline-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

.cert-timeline-title i {
    color: #2563eb;
    font-size: 1.2rem;
}

.cert-years {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 16px;
}

@media (max-width: 768px) {
    .cert-years {
        flex-direction: column;
        align-items: center;
    }

    .cert-year {
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .cert-year:last-child {
        border-bottom: none;
    }

    .year {
        margin-bottom: 0;
    }

    .desc {
        text-align: right;
    }
}

.cert-year {
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.year {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 8px;
}

.desc {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
}

.cert-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .cert-trust {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 32px;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
}

.trust-badge i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-logo {
    font-size: 0.7rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 6px 12px;
    border-radius: 40px;
}

/* ===== MODAL PDF MEJORADO ===== */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.pdf-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pdf-modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 80vh;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
}

.pdf-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .pdf-modal-header h3 {
        font-size: 0.85rem;
    }
}

.pdf-modal-header h3 i {
    color: #ef4444;
}

.pdf-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 40px;
    transition: all 0.2s;
}

.pdf-modal-close:hover {
    background: #ef4444;
    transform: scale(1.05);
}

.pdf-modal-body {
    flex: 1;
    background: #f1f5f9;
    position: relative;
}

.pdf-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.pdf-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.pdf-loading-text {
    font-size: 0.8rem;
    color: #64748b;
}

.pdf-loading-progress {
    width: 200px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    margin: 12px auto 0;
    overflow: hidden;
}

.pdf-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    width: 0%;
    transition: width 0.3s ease;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pdf-modal-body iframe.loaded {
    opacity: 1;
}

.pdf-modal-footer {
    padding: 12px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-download-modal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10b981;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-modal:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ===== TOAST NOTIFICATIONS ===== */
.custom-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

@media (max-width: 480px) {
    .custom-toast {
        white-space: normal;
        max-width: 90%;
        text-align: center;
        font-size: 0.75rem;
        padding: 10px 20px;
    }
}