/* assets/css/styles.css */
/* SC PUBLICIS - Páginas web que convierten */
:root {
    --white: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --gray-dark: #1A1A1A;
    --red-primary: #D93136;
    --aqua-accent: #8EFBF3;
    --green-success: #28A745;
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 50px rgba(0, 0, 0, 0.12);
    --border-radius: 20px;
    --transition-smooth: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--white);
    color: var(--gray-dark);
    line-height: 1.5;
    scroll-behavior: smooth;
}

h1, h2, h3, .btn, .btn-submit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-dark);
}
.section-title .highlight { color: var(--red-primary); }

/* ========== ANIMACIONES GLOBALES ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes countUp { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes floatLogo { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ========== WHATSAPP FLOTANTE ========== */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; background-color: #25D366; color: white; width: 56px; height: 56px;
    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.15); z-index: 1000; animation: float 3s ease-in-out infinite; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #20b859; animation: none; }

/* ========== HEADER ========== */
header { background-color: var(--white); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100; padding: 1rem 0; transition: all 0.3s ease; }
header.scrolled { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: var(--shadow-md); }
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.logo h1 { font-size: 1.5rem; letter-spacing: -0.03em; color: var(--gray-dark); }
.logo h1 span { color: var(--red-primary); }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav a { text-decoration: none; color: var(--gray-dark); font-weight: 600; position: relative; }
nav a:hover { color: var(--red-primary); }
nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--red-primary); transition: width 0.3s; }
nav a:hover::after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-dark); }

/* ========== HERO CON VIDEO MP4 (REGLAS DESBLOQUEADAS) ========== */
.hero,
.hero-video-theme {
    position: relative !important;
    padding: 6rem 0 4rem !important;
    background: #0d1117 !important;
    min-height: 85vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hero-video-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.hero-bg-video {
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.88) 0%, rgba(13, 17, 23, 0.70) 100%) !important;
    z-index: 2 !important;
}

.hero-grid {
    position: relative !important;
    z-index: 10 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
    align-items: center !important;
    width: 100% !important;
}

.hero-content h2 {
    font-size: 2.8rem !important;
    margin-bottom: 1rem !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    color: #f0f6fc !important;
    margin-bottom: 1.5rem !important;
    opacity: 1 !important;
}

.dynamic-text { color: var(--red-primary) !important; font-weight: 600 !important; }
.input-cursor { display: inline-block; width: 2px; height: 1.1rem; background-color: var(--red-primary); animation: blink 0.8s step-end infinite; margin-left: 2px; }

.stats { display: flex; gap: 2rem; margin: 1.5rem 0; justify-content: flex-start; }
.stat-item { text-align: center; opacity: 1 !important; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--red-primary) !important; }
.stat-label { font-size: 0.85rem; color: #c9d1d9 !important; font-weight: 800; text-transform: uppercase; }

.guarantee { display: inline-flex; align-items: center; gap: 0.5rem; background-color: var(--red-primary); padding: 0.6rem 1.2rem; border-radius: 40px; font-size: 0.9rem; margin-top: 1rem; }
.guarantee span, .guarantee i { color: #fff; font-weight: 800; }

.hero-form { background-color: var(--white); padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; justify-self: end; }
.hero-form h3 { font-size: 1.4rem; text-align: center; margin-bottom: 0.3rem; }
.hero-form p { text-align: center; color: var(--gray-medium); margin-bottom: 1.2rem; font-size: 0.85rem; }
.form-group { margin-bottom: 1rem; }
.form-group input { width: 100%; padding: 1rem; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 1rem; background-color: #fafafa; transition: all 0.3s ease; }
.form-group input:focus { outline: none; border-color: var(--red-primary); background-color: var(--white); box-shadow: 0 0 0 3px rgba(217, 49, 54, 0.1); }
.btn-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem; background: linear-gradient(135deg, var(--red-primary) 0%, #c0292e 100%); color: white; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(217, 49, 54, 0.4); }
.form-note { text-align: center; margin-top: 1rem; font-size: 0.75rem; color: var(--gray-medium); }

/* ========== DIAGNÓSTICO ========== */
.diagnostico {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.diagnostico-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.diagnostico-mala, .diagnostico-buena {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: all 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.diagnostico-mala { border-top: 4px solid #dc3545; }
.diagnostico-buena { border-top: 4px solid var(--green-success); }

.diagnostico-mala:hover, .diagnostico-buena:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icono-mala, .icono-buena {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.icono-mala { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.icono-buena { background-color: rgba(40, 167, 69, 0.1); color: var(--green-success); }

.diagnostico-mala h3, .diagnostico-buena h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.diagnostico-mala ul, .diagnostico-buena ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.diagnostico-mala li, .diagnostico-buena li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.diagnostico-mala i.fa-times { color: #dc3545; width: 20px; }
.diagnostico-buena i.fa-check { color: var(--green-success); width: 20px; }

.resultado-mala, .resultado-buena {
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.5;
}

.resultado-mala { background-color: rgba(220, 53, 69, 0.08); color: #721c24; }
.resultado-mala strong { color: #dc3545; }
.resultado-buena { background-color: rgba(40, 167, 69, 0.08); color: #155724; }
.resultado-buena strong { color: var(--green-success); }

.btn-diagnostico {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    justify-content: center;
}

.btn-diagnostico-mala {
    background-color: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-diagnostico-mala:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.btn-diagnostico-buena {
    background-color: var(--green-success);
    color: white;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
}

.btn-diagnostico-buena:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.35);
}

.btn-diagnostico i { transition: transform 0.3s ease; }
.btn-diagnostico:hover i { transform: translateX(5px); }

@media (max-width: 768px) {
    .diagnostico-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .diagnostico-mala, .diagnostico-buena { padding: 2rem 1.5rem; }
    .diagnostico-mala h3, .diagnostico-buena h3 { font-size: 1.3rem; }
}

/* ========== SERVICIOS ========== */
.servicios-tabs { padding: 5rem 0; background-color: var(--gray-light); }
.tabs-nav { display: flex; justify-content: center; gap: 0.5rem; list-style: none; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-link { padding: 0.8rem 1.8rem; background-color: var(--white); border-radius: 50px; cursor: pointer; font-weight: 600; border: 1px solid #eef2f6; transition: all 0.3s; }
.tab-link:hover, .tab-link.active { background-color: var(--red-primary); color: white; border-color: var(--red-primary); }
.tab-content { display: none; animation: fadeInUp 0.4s ease; }
.tab-content.active { display: block; }
.tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: var(--white); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.tab-text ul { list-style: none; margin-bottom: 2rem; }
.tab-text ul li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; }
.tab-text ul li i { color: var(--green-success); }
.btn-primary { background-color: var(--red-primary); color: white; padding: 0.8rem 2rem; border-radius: 40px; text-decoration: none; font-weight: 700; display: inline-flex; }

/* ========== OTROS SERVICIOS ========== */
.other-services { padding: 5rem 0; background-color: var(--gray-light); }
.other-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.other-service-card { background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s ease; border: 1px solid #eef2f6; display: flex; flex-direction: column; }
.other-service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.other-service-image { height: 180px; background-size: cover; background-position: center; position: relative; }
.other-service-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.5)); }
.other-service-icon { position: absolute; bottom: -20px; right: 25px; width: 50px; height: 50px; background-color: var(--red-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(217, 49, 54, 0.4); transition: transform 0.3s ease; z-index: 2; }
.other-service-card:hover .other-service-icon { transform: scale(1.1) rotate(5deg); }
.other-service-content { padding: 2.5rem 1.8rem 1.8rem; flex-grow: 1; }
.other-service-content h4 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--gray-dark); }
.other-service-content p { font-size: 0.9rem; color: var(--gray-medium); margin-bottom: 0; line-height: 1.6; }

/* ========== PORTAFOLIO & REELS ========== */
.portfolio { 
    padding: 5rem 0; 
    background-color: var(--white); 
}

.portfolio-filters { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    margin-bottom: 2.5rem; 
    flex-wrap: wrap; 
}

.filter-btn { 
    padding: 0.5rem 1.5rem; 
    border: 1px solid #eef2f6; 
    background: transparent; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: all 0.3s ease; 
}

.filter-btn:hover, 
.filter-btn.active { 
    background-color: var(--red-primary); 
    color: white; 
    border-color: var(--red-primary);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.portfolio-item { 
    background-color: var(--white); 
    border-radius: var(--border-radius); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm); 
    transition: transform 0.4s ease, opacity 0.4s ease; 
    border: 1px solid #eef2f6; 
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-md); 
}

.portfolio-image { 
    height: 220px; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.5s ease; 
}

.portfolio-item:hover .portfolio-image { 
    transform: scale(1.05); 
}

.portfolio-reel {
    width: 100%;
    height: 380px;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.portfolio-reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-content { 
    padding: 1.5rem; 
}

.portfolio-category { 
    background-color: var(--gray-light); 
    padding: 0.2rem 0.8rem; 
    border-radius: 50px; 
    font-size: 0.7rem; 
    color: var(--red-primary); 
    margin-bottom: 0.5rem; 
    display: inline-block; 
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-client { 
    color: var(--red-primary); 
    font-weight: 600; 
    font-size: 0.85rem; 
    margin-bottom: 0.75rem; 
}

.portfolio-desc { 
    color: var(--gray-medium); 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
}

.portfolio-link { 
    color: var(--red-primary); 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
}

/* ========== PREVIEW Y MODAL DE VIDEO ========== */
.portfolio-scroll-container {
    height: 240px; 
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--gray-light);
    cursor: pointer;
    border-bottom: 1px solid #eef2f6;
}
.portfolio-scroll-video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top center; 
    transition: transform 0.4s ease;
    display: block;
    pointer-events: none;
}
.portfolio-scroll-container:hover .portfolio-scroll-video { transform: scale(1.05); }

.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(220, 38, 38, 0.85); 
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
    color: white; font-size: 1.1rem; font-weight: 700;
}
.portfolio-scroll-container:hover .portfolio-overlay { opacity: 1; }

/* ========== TEXTO EXPANDIBLE PORTAFOLIO ========== */
.portfolio-extended-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.portfolio-extended-text.expanded {
    max-height: 150px; 
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.toggle-text-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    outline: none;
}

.toggle-text-btn i {
    transition: transform 0.3s ease;
}

.toggle-text-btn.active i {
    transform: rotate(180deg); 
}

.modal {
    display: none; 
    position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    align-items: center; justify-content: center;
}
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { width: 95%; max-width: 1100px; margin: 0 auto; }

.laptop-mockup { position: relative; width: 100%; }
.laptop-bezel {
    background-color: #1a1a1a; padding: 3% 3% 5% 3%;
    border-radius: 20px 20px 0 0; position: relative;
    box-shadow: inset 0 0 0 2px #444;
}
.laptop-bezel::before {
    content: ''; position: absolute; top: 1.5%; left: 50%;
    transform: translateX(-50%); width: 8px; height: 8px;
    background-color: #333; border-radius: 50%; box-shadow: inset 0 0 2px #000;
}
.laptop-screen { position: relative; width: 100%; background-color: #ffffff; overflow: hidden; border-radius: 4px; }
.laptop-screen video { width: 100%; height: auto; display: block; }
.laptop-base {
    background: linear-gradient(to bottom, #d4d4d4 0%, #a3a3a3 100%);
    height: 25px; border-radius: 0 0 20px 20px; position: relative;
    margin: 0 -3%; box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}
.laptop-base::after {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 15%; height: 8px;
    background-color: #b8b8b8; border-radius: 0 0 8px 8px;
}
.close-modal {
    position: absolute; top: 20px; right: 40px; color: #fff;
    font-size: 45px; font-weight: bold; cursor: pointer;
    transition: color 0.3s; z-index: 10000;
}
.close-modal:hover { color: var(--red-primary); }

/* ========== PRUEBA SOCIAL / LOGOS ========== */
.confianza { padding: 4.5rem 0; background-color: var(--gray-light); text-align: center; }
.confianza-titulo { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 2.2rem; margin-bottom: 1.5rem; }
.numero-clientes { font-size: 4.5rem; font-weight: 800; color: var(--red-primary); line-height: 1; }
.confianza-subtitulo { font-size: 1.25rem; color: var(--gray-medium); max-width: 850px; margin: 0 auto; }

.clientes { padding: 3rem 0; text-align: center; }
.clientes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
.cliente-logo { width: 120px; opacity: 0.7; transition: all 0.3s; animation: floatLogo 4s ease-in-out infinite; }
.cliente-logo:nth-child(odd) { animation-delay: 1s; }
.cliente-logo:nth-child(3n) { animation-delay: 2s; }
.cliente-logo:hover { opacity: 1; transform: scale(1.1) !important; animation-play-state: paused; }
.cliente-logo img { width: 100%; filter: grayscale(100%); transition: filter 0.3s; }
.cliente-logo:hover img { filter: grayscale(0%); }

/* ========== BLOG ========== */
.blog-section { padding: 5rem 0; background-color: var(--gray-light); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background-color: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-image { height: 200px; background-size: cover; background-position: center; background-color: var(--gray-light); }
.blog-content { padding: 1.5rem; }
.blog-category { display: inline-block; font-size: 0.7rem; font-weight: 600; color: var(--red-primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.blog-content p { color: var(--gray-medium); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-link { color: var(--red-primary); text-decoration: none; font-weight: 600; transition: gap 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; }
.blog-link:hover { gap: 0.75rem; }

/* ========== PROCESO ========== */
.process { padding: 5rem 0; background-color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.process-step { padding: 1rem; transition: transform 0.3s var(--transition-smooth); }
.process-step:hover { transform: translateY(-5px); }
.process-number { width: 50px; height: 50px; background-color: var(--red-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 1rem; transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s ease; }
.process-step:hover .process-number { transform: scale(1.1); box-shadow: 0 5px 15px rgba(217, 49, 54, 0.3); }
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--gray-medium); font-size: 0.85rem; }

/* ========== TESTIMONIOS ========== */
.testimonials { padding: 5rem 0; background-color: var(--gray-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background-color: var(--white); padding: 2rem; border-radius: var(--border-radius); transition: all 0.3s var(--transition-smooth); box-shadow: var(--shadow-sm); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-text { font-size: 1rem; margin-bottom: 1.5rem; font-style: italic; color: var(--gray-dark); }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; background-color: var(--red-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.2rem; transition: transform 0.3s var(--transition-smooth); }
.testimonial-card:hover .author-avatar { transform: scale(1.05); }
.author-info strong { display: block; font-size: 1rem; }
.author-info span { font-size: 0.8rem; color: var(--gray-medium); }

/* ========== FOOTER ========== */
footer { background-color: var(--gray-dark); color: var(--white); padding: 3rem 0 1.5rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--white); }
.footer-col p, .footer-col a { color: #aaa; text-decoration: none; margin-bottom: 0.5rem; display: block; font-size: 0.9rem; transition: color 0.3s ease, transform 0.2s var(--transition-smooth); }
.footer-col a:hover { color: var(--red-primary); transform: translateX(5px); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { width: 36px; height: 36px; background-color: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--transition-smooth); }
.social-links a:hover { background-color: var(--red-primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: #888; }

/* ========== RESPONSIVE BÁSICO ========== */
@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-grid { grid-template-columns: 1fr !important; text-align: center; }
    .diagnostico-cards-container, .tab-grid, .other-services-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-form { justify-self: center; }
    .tabs-nav { flex-direction: column; align-items: center; }
    .tab-link { width: 100%; max-width: 300px; text-align: center; }
    .tab-text ul li { justify-content: center; }
    nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem; gap: 1rem; box-shadow: var(--shadow-md); }
    nav ul.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* ========== DIAGNÓSTICO (para artículos) ========== */
.diagnostico {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.diagnostico-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.diagnostico-mala, .diagnostico-buena {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.diagnostico-mala { border-top: 4px solid #dc3545; }
.diagnostico-buena { border-top: 4px solid var(--green-success); }
.diagnostico-mala:hover, .diagnostico-buena:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.icono-mala, .icono-buena {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.icono-mala { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.icono-buena { background-color: rgba(40, 167, 69, 0.1); color: var(--green-success); }
.diagnostico-mala h3, .diagnostico-buena h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}
.diagnostico-mala ul, .diagnostico-buena ul {
    list-style: none;
    margin-bottom: 1.5rem;
}
.diagnostico-mala li, .diagnostico-buena li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-dark);
}
.diagnostico-mala i.fa-times { color: #dc3545; width: 20px; }
.diagnostico-buena i.fa-check { color: var(--green-success); width: 20px; }
.resultado-mala, .resultado-buena {
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.5;
}
.resultado-mala { background-color: rgba(220, 53, 69, 0.08); color: #721c24; }
.resultado-mala strong { color: #dc3545; }
.resultado-buena { background-color: rgba(40, 167, 69, 0.08); color: #155724; }
.resultado-buena strong { color: var(--green-success); }
@media (max-width: 768px) {
    .diagnostico-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .diagnostico-mala, .diagnostico-buena { padding: 2rem 1.5rem; }
}

/* ========== DIAGNÓSTICO ========== */
.diagnostico {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.diagnostico-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.diagnostico-mala, .diagnostico-buena {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: all 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.diagnostico-mala { border-top: 4px solid #dc3545; }
.diagnostico-buena { border-top: 4px solid var(--green-success); }

.diagnostico-mala:hover, .diagnostico-buena:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.icono-mala, .icono-buena {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.icono-mala { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.icono-buena { background-color: rgba(40, 167, 69, 0.1); color: var(--green-success); }

.diagnostico-mala h3, .diagnostico-buena h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.diagnostico-mala ul, .diagnostico-buena ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.diagnostico-mala li, .diagnostico-buena li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.diagnostico-mala i.fa-times { color: #dc3545; width: 20px; }
.diagnostico-buena i.fa-check { color: var(--green-success); width: 20px; }

.resultado-mala, .resultado-buena {
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.5;
}

.resultado-mala { background-color: rgba(220, 53, 69, 0.08); color: #721c24; }
.resultado-mala strong { color: #dc3545; }
.resultado-buena { background-color: rgba(40, 167, 69, 0.08); color: #155724; }
.resultado-buena strong { color: var(--green-success); }

.btn-diagnostico {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    justify-content: center;
}

.btn-diagnostico-mala {
    background-color: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-diagnostico-mala:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.btn-diagnostico-buena {
    background-color: var(--green-success);
    color: white;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
}

.btn-diagnostico-buena:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.35);
}

.btn-diagnostico i { transition: transform 0.3s ease; }
.btn-diagnostico:hover i { transform: translateX(5px); }

@media (max-width: 768px) {
    .diagnostico-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .diagnostico-mala, .diagnostico-buena { padding: 2rem 1.5rem; }
    .diagnostico-mala h3, .diagnostico-buena h3 { font-size: 1.3rem; }
}