:root {
    --blanco: #FFFFFF;
    --blanco-sec: #F8F9FA;
    --negro: #000000;
    --negro-sec: #212529;
    --rojo: #FF0000;
    --rojo-oscuro: #CC0000;
    --rojo-claro: #FF3333;
    --gris: #6c757d;
    --gris-claro: #e9ecef;
    --retail: #FF6B6B;
    --fintech: #4ECDC4;
    --logistica: #45B7D1;
    --healthtech: #96CEB4;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.1);
    --sombra-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Breakpoints consistentes */
    --breakpoint-mobile: 576px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 992px;
    --breakpoint-large: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--negro);
    line-height: 1.6;
    background-color: var(--blanco);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TIPOGRAFÍA FUTURISTA */
h1, h2, h3, h4, .logo, .btn, .modalidad {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.logo {
    font-size: 1.8rem;
    color: var(--rojo);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--negro);
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--negro);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--negro);
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rojo);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--rojo);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--negro);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background-color: var(--blanco);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-text {
    width: 100%;
    text-align: center;
}

.hero-image {
    width: 100%;
    text-align: center;
    position: relative;
    min-height: 280px; /* Altura mínima para evitar colapso */
}

.hero-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 8%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero h1 span {
    color: var(--rojo);
}

.hero p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--negro-sec);
}

/* Estilos base para la imagen de perfil (móvil primero) */
.hero-profile-image {
    width: 100%;
    max-width: 280px;
    height: 280px;
    border-radius: 8%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-image: url('./images/levis-fundador.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

/* Para responsive - Versión tablet */
@media (min-width: 768px) {
    .hero-profile-image {
        max-width: 320px;
        height: 320px;
    }
}

/* Para responsive - Versión desktop */
@media (min-width: 992px) {
    .hero-profile-image {
        max-width: 380px;
        height: 380px;
    }
}

/* Para responsive - Versión large desktop */
@media (min-width: 1200px) {
    .hero-profile-image {
        max-width: 420px;
        height: 420px;
    }
}

/* Mejoras para Hero */
.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.btn-primary {
    background-color: var(--rojo);
    color: white;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

.resultados-globales {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.resultado-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.numero {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--rojo);
    margin-bottom: 5px;
}

.texto {
    font-size: 0.85rem;
    color: var(--negro-sec);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--negro-sec);
    text-decoration: none;
    margin-top: 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.linkedin-link:hover {
    color: var(--rojo);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background-color: var(--rojo);
    color: var(--blanco);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
    min-height: 50px;
}

.btn:hover {
    background-color: var(--rojo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
}

.microcopy {
    font-size: 0.85rem;
    color: var(--negro-sec);
    margin-top: 12px;
    display: block;
}

/* Trust Badges */
.trust-badges {
    background-color: var(--blanco-sec);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-badges .container {
    text-align: center;
}

.trust-badges h3 {
    margin-bottom: 20px;
    color: var(--negro-sec);
}

.sectores-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.sector-item {
    padding: 10px 20px;
    background: var(--blanco);
    border-radius: 25px;
    border: 1px solid var(--rojo);
    color: var(--rojo);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Secciones */
.section {
    padding: 60px 0;
    background-color: var(--blanco);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--rojo);
}

.section-title p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--negro-sec);
}

/* Diferenciadores Section */
.diferenciadores {
    background-color: var(--blanco-sec);
}

.diferenciadores-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.diferenciador-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: var(--sombra);
}

.diferenciador-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.diferenciador-card h3 {
    margin-bottom: 15px;
    color: var(--rojo);
}

.cta-intermedio {
    text-align: center;
    padding: 40px;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: var(--sombra);
    margin-top: 30px;
}

/* Grid de Pasos */
.pasos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.paso-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--blanco);
}

.paso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--rojo);
}

.paso-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    color: var(--rojo);
}

.paso-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Servicios Section */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.servicio-card {
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--blanco);
    position: relative;
    cursor: pointer;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--rojo);
    transition: height 0.3s;
}

.servicio-card:hover::before {
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.servicio-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--rojo);
}

.servicio-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Casos de Éxito */
.casos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.caso-card {
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    background-color: var(--blanco);
    border-top: 5px solid;
    position: relative;
    overflow: hidden;
}

.caso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Colores por industria */
.caso-retail {
    border-color: var(--retail);
}

.caso-fintech {
    border-color: var(--fintech);
}

.caso-logistica {
    border-color: var(--logistica);
}

.caso-healthtech {
    border-color: var(--healthtech);
}

.caso-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.industria-icono {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 12px;
}

.icono-retail {
    background-color: rgba(255, 107, 107, 0.15);
    color: var(--retail);
}

.icono-fintech {
    background-color: rgba(78, 205, 196, 0.15);
    color: var(--fintech);
}

.icono-logistica {
    background-color: rgba(69, 183, 209, 0.15);
    color: var(--logistica);
}

.icono-healthtech {
    background-color: rgba(150, 206, 180, 0.15);
    color: var(--healthtech);
}

.caso-card h3 {
    color: var(--negro);
    font-size: 1.2rem;
}

.caso-problema, .caso-solucion {
    margin-bottom: 15px;
}

.problema-box, .solucion-box {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
}

.problema-box {
    background-color: rgba(255, 107, 107, 0.08);
    border-left: 4px solid var(--retail);
}

.solucion-box {
    background-color: rgba(78, 205, 196, 0.08);
    border-left: 4px solid var(--fintech);
}

.problema-box h4, .solucion-box h4 {
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}

.resultados-section {
    background: var(--blanco-sec);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--rojo);
}

.resultados-section h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--rojo);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
}

.metricas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.metrica {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    background: var(--blanco);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.valor-metrica {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.mejora-positiva {
    color: #10B981;
}

.mejora-negativa {
    color: var(--rojo);
}

.etiqueta-metrica {
    font-size: 0.85rem;
    color: var(--negro-sec);
}

.barra-progreso {
    height: 6px;
    background: var(--blanco-sec);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progreso {
    height: 100%;
    border-radius: 3px;
}

.progreso-retail {
    background: var(--retail);
    width: 35%;
}

.progreso-fintech-tiempo {
    background: var(--fintech);
    width: 80%;
}

.progreso-fintech-errores {
    background: var(--fintech);
    width: 60%;
}

.progreso-logistica {
    background: var(--logistica);
    width: 30%;
}

.progreso-healthtech {
    background: var(--healthtech);
    width: 85%;
}

.ahorro-dinero {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    text-align: center;
    margin-top: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

/* Testimonios Section */
.testimonios {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.testimonios-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonios-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.testimonio-slide {
    flex: 0 0 100%;
    padding: 20px;
    box-sizing: border-box;
    min-width: 0;
}

.testimonio-card {
    background: var(--blanco);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--sombra);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.testimonio-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 80px;
    color: var(--rojo);
    opacity: 0.1;
    font-family: Arial, sans-serif;
}

.testimonio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.testimonio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--rojo);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.testimonio-rating {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonio-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--negro-sec);
    position: relative;
}

.testimonio-author {
    font-weight: 700;
    color: var(--rojo);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonio-role {
    color: var(--gris);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.testimonio-company {
    display: inline-block;
    background: var(--gris-claro);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--negro-sec);
}

.testimonio-industry {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    background: var(--rojo);
    color: white;
    font-size: 0.7rem;
    border-radius: 0 12px 0 12px;
}

.testimonio-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 8px;
}

.testimonio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blanco);
    border: 2px solid var(--rojo);
    cursor: pointer;
    transition: all 0.3s;
}

.testimonio-dot.active {
    background: var(--rojo);
    transform: scale(1.2);
}

.testimonio-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    z-index: 10;
    pointer-events: none;
}

.testimonio-arrow {
    pointer-events: auto;
    background: var(--blanco);
    color: var(--rojo);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonio-arrow:hover {
    background: var(--rojo);
    color: var(--blanco);
    transform: scale(1.1);
}

.carousel-progress {
    height: 4px;
    background-color: var(--gris-claro);
    width: 100%;
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--rojo);
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Section */
.cta-section {
    background: var(--blanco-sec);
    color: var(--negro);
    text-align: center;
    padding: 60px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--negro-sec);
}

.modalidades {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
}

.modalidad {
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    transition: all 0.3s;
    background-color: var(--rojo);
    color: var(--blanco);
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.modalidad:hover {
    transform: scale(1.03);
    background-color: var(--rojo-oscuro);
}

.form-container {
    background: var(--blanco);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-container h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--negro-sec);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: white;
    padding: 0 0.5rem;
    color: var(--rojo);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
    background: var(--blanco);
    color: var(--negro);
    font-family: 'Exo 2', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--rojo);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--rojo);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.error-message {
    color: var(--rojo);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.alternativa-contacto {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gris-claro);
}

.alternativa-contacto p {
    margin-bottom: 15px;
    color: var(--negro-sec);
}

/* Modal para testimonios en video */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--blanco);
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--negro);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--rojo);
}

.video-placeholder {
    background-color: var(--blanco-sec);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 15px;
    flex-direction: column;
    gap: 12px;
}

.video-placeholder i {
    font-size: 2.5rem;
    color: var(--rojo);
}

.video-placeholder p {
    color: var(--negro-sec);
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--blanco);
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.footer-links a {
    color: var(--negro-sec);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--rojo);
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--blanco-sec);
    color: var(--negro);
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--rojo);
    color: var(--blanco);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--negro-sec);
    font-size: 0.85rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(25, 211, 102, 0.3);
    background-color: #25D366;
    color: var(--blanco);
    font-size: 0.9rem;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(25, 211, 102, 0.4);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blanco);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 40px;
    height: 40px;
    position: relative;
}

.loader::before, .loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--rojo);
    animation: spin 1.5s linear infinite;
}

.loader::after {
    border-top-color: var(--negro);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */

/* Ajustar el layout del hero en móvil */
@media (max-width: 767px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        order: -1; /* Colocar la imagen primero en móvil */
        margin-bottom: 30px;
    }
}

/* Tablet: 768px a 991px */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 40px;
    }
    
    .hero-text {
        width: 50%;
        text-align: left;
    }
    
    .hero-image {
        width: 50%;
    }
    
    .hero-image img {
        max-width: 320px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-ctas {
        flex-direction: row;
        align-items: center;
    }

    .section {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 50px;
    }
    
    .diferenciadores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pasos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .casos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .testimonio-slide {
        flex: 0 0 50%; /* Mostrar 2 slides a la vez en tablet */
        padding: 30px;
    }
    
    .modalidades {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .modalidad {
        width: auto;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .nav-links {
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        width: auto;
        padding: 0;
        height: auto;
        overflow-y: visible;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* Desktop: 992px a 1199px */
@media (min-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero {
        padding: 140px 0 100px;
    }
    
    .hero-content {
        gap: 60px;
    }
    
    .hero-image img {
        max-width: 380px;
    }
    
    .pasos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .testimonio-slide {
        flex: 0 0 33.333%; /* Mostrar 3 slides a la vez en desktop */
    }
}

/* Large Desktop: 1200px+ */
@media (min-width: 1200px) {
    h1 {
        font-size: 3.2rem;
    }
    
    .hero-image img {
        max-width: 420px;
    }
}

/* Navigation mobile styles */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background-color: var(--blanco);
        width: 100%;
        padding: 20px;
        transition: 0.4s;
        gap: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .testimonio-arrows {
        display: none;
    }
}

/* Optimización para tablet en landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-content {
        min-height: auto;
    }
    
    .nav-links {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Mejora de rendimiento para animaciones en móvil */
@media (max-width: 767px) {
    .paso-card:hover {
        transform: none;
    }
    
    /* Simplifica animaciones en móviles */
    * {
        transition-duration: 0.3s !important;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .caso-card,
    .servicio-card,
    .paso-card {
        padding: 15px;
    }
    
    .testimonio-card {
        padding: 20px;
    }
    
    .testimonio-text {
        font-size: 0.95rem;
    }
    
    .resultado-item {
        min-width: 80px;
    }
    
    .numero {
        font-size: 1.5rem;
    }
}