/* ==========================================================================
   LSG ASESORÍA CONTABLE Y TRIBUTARIA - ESTILOS PRINCIPALES
   ========================================================================== */

:root {
    /* Paleta de Colores Oficial LSG */
    --primary-red: #c8102e;
    --primary-red-hover: #a50b23;
    --primary-red-soft: rgba(200, 16, 46, 0.1);
    --navy-dark: #07182b;
    --navy-main: #0c2340;
    --navy-light: #16365c;
    --navy-soft: #edf3fa;
    --blue-topbar: #0f2b48;
    
    /* Colores Neutros y de Fondo */
    --bg-white: #ffffff;
    --bg-light: #f8fafd;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    
    /* Tipografía */
    --text-heading: #0c2340;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-light: #cbd5e1;
    --text-white: #ffffff;
    
    /* Fuentes */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-script: 'Caveat', cursive, 'Brush Script MT', sans-serif;
    
    /* Efectos y Sombras */
    --shadow-sm: 0 2px 6px rgba(12, 35, 64, 0.05);
    --shadow-md: 0 6px 16px rgba(12, 35, 64, 0.08);
    --shadow-lg: 0 12px 30px rgba(12, 35, 64, 0.12);
    --shadow-hover: 0 16px 36px rgba(200, 16, 46, 0.14);
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 50px;
}

/* Reset y Normalización */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* Utilidades de Contenedor */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   BARRA SUPERIOR (TOPBAR)
   ========================================================================== */
.topbar {
    background-color: var(--blue-topbar);
    color: #cbd5e1;
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.85;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    transition: var(--transition);
}

.social-circle:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
}

.social-circle svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.topbar-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================================
   CABECERA PRINCIPAL (NAVBAR)
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    max-width: 190px;
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-heading);
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-whatsapp-header {
    background-color: var(--primary-red);
    color: #ffffff;
    padding: 9px 20px;
    font-size: 0.88rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 12px rgba(200, 16, 46, 0.25);
}

.btn-whatsapp-header:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

.btn-whatsapp-header svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--navy-main);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 60%, #e9f2fa 100%);
    padding: 50px 0 60px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
}

.hero-tag {
    display: inline-block;
    color: var(--primary-red);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy-main);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-actions {
    margin-bottom: 38px;
}

/* Indicadores de Valor (4 iconos circulares) */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(12, 35, 64, 0.1);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.hero-feature-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.hero-feature-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy-main);
    line-height: 1.25;
}

/* Columna Imagen Hero */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.hero-main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

/* Frase manuscrita decorativa "Tu negocio en buenas manos" */
.script-badge-hero {
    position: absolute;
    top: -15px;
    right: -10px;
    background: transparent;
    text-align: right;
    z-index: 10;
    transform: rotate(2deg);
}

.script-text {
    font-family: var(--font-script);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-main);
    line-height: 1.1;
    display: block;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.script-underline {
    display: block;
    margin-left: auto;
    width: 130px;
    height: 12px;
}

/* ==========================================================================
   SECCIÓN NOSOTROS (¿Quiénes somos?)
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 0.9fr;
    align-items: center;
    gap: 36px;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.03);
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy-main);
    line-height: 1.2;
    margin-bottom: 18px;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 16px;
    line-height: 1.65;
}

.about-content .btn {
    margin-top: 10px;
}

/* Tarjetas de Estadísticas */
.stats-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.3);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-red-soft);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */
.services-section {
    padding: 85px 0;
    background-color: var(--bg-light);
}

.section-header-center {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-header-center .section-title {
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.4);
}

.service-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.25);
}

.service-icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-info {
    flex-grow: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-main);
    line-height: 1.3;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   SECCIÓN BENEFICIOS (¿Por qué elegirnos?)
   ========================================================================== */
.why-us-section {
    background: linear-gradient(135deg, #091f36 0%, #0d2b4a 100%);
    color: #ffffff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.why-us-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    align-items: center;
    gap: 40px;
}

.why-us-content .section-tag {
    color: #f87171;
}

.why-us-content .section-title {
    color: #ffffff;
    font-size: 2.1rem;
    margin-bottom: 16px;
}

.why-us-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.why-us-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.4);
}

.check-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-us-image {
    display: flex;
    justify-content: center;
}

.why-us-image img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 280px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   SECCIÓN TESTIMONIOS
   ========================================================================== */
.testimonials-section {
    padding: 85px 0;
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.3);
}

.testimonial-body {
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-body);
    font-style: italic;
    line-height: 1.6;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-main);
    line-height: 1.2;
}

.author-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.star-rating {
    display: flex;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.95rem;
}

/* ==========================================================================
   SECCIÓN BLOG / NOTICIAS
   ========================================================================== */
.blog-section {
    padding: 85px 0;
    background-color: var(--bg-light);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-thumbnail {
    position: relative;
    height: 130px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--primary-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.blog-info {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy-main);
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-red);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-link:hover {
    color: var(--primary-red-hover);
    gap: 8px;
}

/* ==========================================================================
   SECCIÓN CONTACTO
   ========================================================================== */
.contact-section {
    background: linear-gradient(135deg, #07192b 0%, #0c2744 60%, #10345b 100%);
    color: #ffffff;
    padding: 75px 0;
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.9fr;
    align-items: center;
    gap: 36px;
}

.contact-info .section-tag {
    color: #f87171;
}

.contact-info .section-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.contact-info p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f1f5f9;
    font-size: 0.92rem;
}

.contact-email-link {
    color: #f1f5f9;
    text-decoration: none;
    transition: var(--transition);
}

.contact-email-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Formulario */
.contact-form-wrap {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background-color: #ffffff;
    color: var(--navy-main);
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.form-group textarea {
    border-radius: var(--radius-md);
    min-height: 90px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.25);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-feedback {
    display: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-top: 10px;
}

.form-feedback.success {
    display: block;
    background-color: #10b981;
    color: #ffffff;
}

.form-feedback.error {
    display: block;
    background-color: #ef4444;
    color: #ffffff;
}

/* Columna Derecha Contacto (Visual con edificios y frase manuscrita) */
.contact-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-visual img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
    max-width: 240px;
}

.script-badge-contact {
    margin-top: 16px;
}

.script-text-contact {
    font-family: var(--font-script);
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.script-underline-contact {
    width: 140px;
    margin: 4px auto 0;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: var(--navy-dark);
    color: #94a3b8;
    padding: 35px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #20ba5a;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.whatsapp-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: 2px solid #ffffff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-column {
        grid-column: span 2;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .why-us-image {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .topbar-container {
        justify-content: center;
        text-align: center;
    }

    .topbar-right {
        display: none; /* Oculta en móviles para evitar saturación */
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-light);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin: 0 auto 28px;
    }

    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-column {
        grid-column: span 1;
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        grid-column: span 1;
    }

    .script-text {
        font-size: 1.7rem;
    }
}
