/* -------------------------------------------------------------
   RUIZ SERVICIOS PROFESIONALES - PALETA DE COLORES PERSONALIZADA
   
   - #4CAF50: Verde lima principal (Botones CTA, resaltados y acentos)
   - #FFFFFF: Blanco puro (Fondo de Hero y tarjetas)
   - #F5E8C8: Beige tierra suave (Fondo de secciones secundarias)
   - #111517 / #212121: Oscuro (Texto y contrastes de logo)
   - #D84315: Rojo oscuro (Botones secundarios / llamadas de atención)
   - #BDBDBD: Gris claro (Bordes y separadores sutiles)
------------------------------------------------------------- */

:root {
    --bg-main: #FFFFFF;          /* Blanco limpio para secciones clave */
    --bg-secondary: #F5E8C8;     /* Beige tierra suave para contraste */
    --bg-card: #FFFFFF;          /* Blanco para tarjetas */
    --bg-dark-accent: #111517;   /* Oscuro para destacar el logo dorado/metálico */
    
    --text-primary: #212121;     /* Texto oscuro para contraste en fondo blanco/beige */
    --text-heading: #1B5E20;     /* Verde oscuro contrastante para títulos generales */
    --text-muted: #555555;       /* Gris neutro para párrafos */
    --text-light: #FFFFFF;       /* Blanco */
    
    --accent-green: #4CAF50;     /* Verde lima principal */
    --accent-green-hover: #388E3C;
    --accent-yellow: #FFC107;    /* Acentos secundarios */
    --accent-red: #D84315;       /* Rojo oscuro */
    --accent-red-hover: #BF360C;
    
    --border-light: #E0E0E0;     /* Gris claro */
    --border-green: rgba(76, 175, 80, 0.4);
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset & Configuración Básica */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    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;
}

/* Contenedor Principal */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

/* Tipografía y Clases Auxiliares */
.text-lime, .text-highlight {
    color: var(--accent-green);
}

.text-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-green);
    background: #E8F5E9;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
    border: 1px solid var(--border-green);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    font-weight: 800;
}

.btn-primary:hover {
    background-color: var(--accent-green-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background-color: var(--accent-red);
    color: #FFFFFF;
    font-weight: 800;
}

.btn-secondary:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
}

.btn-outline-hero {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.btn-outline-hero:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

/* ENCABEZADO Y LOGO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--accent-green);
    transition: var(--transition);
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(145deg, #1e2528, #111517);
    border: 1.5px solid var(--accent-yellow);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.logo-link:hover {
    border-color: var(--accent-green);
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.3);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-green);
    transition: var(--transition);
    border-radius: 2px;
}

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

.btn-header-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
}

/* HERO SECTION CON FONDO BLANCO */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    color: var(--text-primary);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(76, 175, 80, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 850px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E8F5E9;
    border: 1px solid var(--border-green);
    color: var(--accent-green);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: #111517;
}

/* Cambio solicitado: texto destacado en Verde Lima */
.hero-title .text-lime {
    color: var(--accent-green);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 680px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border-light);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

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

/* SECCIÓN DE SERVICIOS */
.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-green);
}

.service-card.highlight-card {
    border-top: 4px solid var(--accent-green);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: #E8F5E9;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--accent-green);
    color: #FFFFFF;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.service-card:hover .service-link svg {
    transform: translate(2px, -2px);
}

/* PROPUESTA DE VALOR */
.value-prop {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.value-prop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text-heading);
}

.value-title .text-highlight {
    color: var(--accent-green);
}

.value-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.value-list {
    margin-bottom: 36px;
}

.value-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.check-icon {
    width: 24px;
    height: 24px;
    background-color: #E8F5E9;
    color: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-icon svg {
    width: 14px;
    height: 14px;
}

.value-prop-image-wrap {
    position: relative;
}

.value-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 2;
}

.image-accent-border {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-green);
    border-radius: var(--radius-md);
    z-index: 1;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    z-index: 3;
    background: linear-gradient(145deg, #1e2528, #111517);
    color: #FFFFFF;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--accent-yellow);
}

.floating-badge svg {
    width: 36px;
    height: 36px;
    color: var(--accent-yellow);
}

.floating-badge strong {
    display: block;
    font-size: 1rem;
    color: #FFFFFF;
}

.floating-badge span {
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

/* BENEFICIOS */
.benefits {
    background-color: var(--bg-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-green);
}

.benefit-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(76, 175, 80, 0.15);
    line-height: 1;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    background-color: #E8F5E9;
    color: var(--accent-green);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.benefit-icon svg {
    width: 26px;
    height: 26px;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.benefit-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* PROCESO DE TRABAJO */
.process {
    background-color: var(--bg-card);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.process-step {
    padding: 20px;
    position: relative;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
    background-color: #E8F5E9;
    padding: 6px 16px;
    border-radius: 20px;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-light);
    margin-left: 12px;
}

.step-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-green);
    margin-bottom: 16px;
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.step-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* CTA & CONTACTO */
.cta-section {
    background-color: #1B5E20;
    color: #FFFFFF;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
    margin-bottom: 40px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-form {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-yellow);
}

.form-group {
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cta-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-yellow);
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.cta-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
    background-color: rgba(255, 255, 255, 0.18);
}

.cta-form select option {
    background-color: #1B5E20;
    color: #FFFFFF;
}

.form-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
}

.form-privacy svg {
    width: 14px;
    height: 14px;
}

/* FOOTER */
.footer {
    background-color: #111517;
    color: #FFFFFF;
    padding: 80px 0 30px;
    border-top: 3px solid var(--accent-green);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(145deg, #1e2528, #111517);
    padding: 4px 8px;
    border: 1px solid var(--accent-yellow);
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-green);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 4px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
}

.contact-info svg {
    width: 18px;
    height: 18px;
    color: var(--accent-yellow);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 12px;
}

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

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 70px;
    background-color: #111517;
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--accent-yellow);
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* DISEÑO RESPONSIVO */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .value-prop-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .value-prop-image-wrap {
        order: -1;
    }

    .value-img {
        height: 380px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .step-line {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .btn-header {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        transition: var(--transition);
        border-top: 1px solid var(--border-light);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 30px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .btn-header-mobile {
        display: inline-flex;
        width: 100%;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .metric-divider {
        display: none;
    }

    .cta-form {
        padding: 24px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .floating-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 16px;
    }

    .image-accent-border {
        display: none;
    }
}/* ==================================================================
   WIDGET DE CHAT FLOTANTE - RUIZ SERVICIOS PROFESIONALES
   Agregar este bloque al final de styles.css (o enlazarlo aparte
   en <head> DESPUÉS de styles.css).
   Reutiliza las variables --accent-green, --font-main, etc. ya
   definidas en :root dentro de styles.css.
================================================================== */

#chat-widget-root {
    --chat-primary: #2e7d32;
    --chat-primary-hover: #1b5e20;
    --chat-bg-window: #f4f8f5;
    --chat-bubble-user: #ffffff;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
}

/* ---------- BOTÓN FLOTANTE ---------- */
.chat-toggle-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--chat-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.chat-toggle-btn:hover {
    background: var(--chat-primary-hover);
    transform: scale(1.06);
}

.chat-toggle-btn svg {
    width: 26px;
    height: 26px;
}

.chat-toggle-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #d84315;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* ---------- VENTANA DEL CHAT ---------- */
/* Tamaño base pensado para escritorio y laptop: ventanita compacta,
   nunca más alta ni más ancha que el viewport disponible. */
.chat-window {
    position: fixed;
    bottom: 92px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: min(480px, calc(100vh - 120px));
    height: min(480px, calc(100dvh - 120px));
    background: var(--chat-bg-window);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;
}

.chat-window.chat-window-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ---------- HEADER ---------- */
.chat-header {
    background: var(--chat-primary);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-header-title {
    font-weight: 700;
    font-size: 14.5px;
    margin: 0;
}

.chat-header-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px 0 0 0;
}

.chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8bff8b;
    display: inline-block;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.85;
    display: flex;
    padding: 4px;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-close-btn svg {
    width: 20px;
    height: 20px;
}

/* ---------- MENSAJES ---------- */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(46, 125, 50, 0.25);
    border-radius: 10px;
}

.chat-bubble {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 13.8px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
    animation: chatFadeIn 0.2s ease;
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-bot {
    background: #fff;
    color: #212121;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-bubble-user {
    background: var(--chat-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble strong {
    font-weight: 700;
}

/* ---------- INDICADOR "ESCRIBIENDO..." ---------- */
.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 10px 16px;
    flex-shrink: 0;
}

.chat-avatar-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--chat-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-avatar-small svg {
    width: 14px;
    height: 14px;
}

.typing-dots {
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9e9e9e;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ---------- TARJETA DE CONFIRMACIÓN / ELECCIÓN DE AGENTE ---------- */
.chat-summary-card {
    margin: 0 16px 12px 16px;
    background: #fff;
    border: 1.5px solid rgba(46, 125, 50, 0.3);
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0;
    animation: chatFadeIn 0.25s ease;
}

.chat-summary-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
    color: var(--chat-primary);
    margin-bottom: 8px;
}

.chat-summary-header svg {
    width: 16px;
    height: 16px;
}

.chat-summary-question {
    font-size: 12.5px;
    color: #333;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.chat-agent-choice-buttons {
    display: flex;
    gap: 8px;
}

.chat-agent-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px 8px;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.chat-agent-btn svg {
    width: 15px;
    height: 15px;
}

.chat-agent-btn-yes {
    background: #25d366;
    color: #fff;
}

.chat-agent-btn-yes:hover {
    background: #1ebe5b;
}

.chat-agent-btn-no {
    background: #f0f0f0;
    color: #555;
}

.chat-agent-btn-no:hover {
    background: #e2e2e2;
}

/* ---------- FORMULARIO DE ENTRADA ---------- */
.chat-input-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: var(--chat-primary);
}

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--chat-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.chat-send-btn:hover {
    background: var(--chat-primary-hover);
}

.chat-send-btn svg {
    width: 17px;
    height: 17px;
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- RESPONSIVO (TABLET) ---------- */
@media (min-width: 481px) and (max-width: 900px) {
    .chat-window {
        width: 330px;
        height: min(440px, calc(100vh - 110px));
        height: min(440px, calc(100dvh - 110px));
        bottom: 88px;
        right: 18px;
    }
}

/* ---------- RESPONSIVO (MÓVIL) ---------- */
@media (max-width: 480px) {
    #chat-widget-root {
        bottom: 16px;
        right: 16px;
    }

    .chat-toggle-btn {
        width: 52px;
        height: 52px;
    }

    .chat-window {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 78px;
        width: auto;
        max-width: none;
        height: min(65vh, 460px);
        height: min(65dvh, 460px);
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
    }
}
