* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Modal de Éxito */
.modal-exito {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    pointer-events: none; /* No bloquear clicks cuando está oculto */
}

.modal-exito.mostrar,
.modal-exito[style*="display: flex"] {
    pointer-events: auto; /* Permitir clicks cuando está visible */
}

.modal-exito.mostrar,
.modal-exito.cerrando {
    display: flex;
}

.modal-exito.mostrar {
    opacity: 1;
}

.modal-exito.cerrando {
    opacity: 0;
}

.modal-exito-contenido {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(0);
    opacity: 1;
    margin: 0 auto;
}

.modal-exito.mostrar .modal-exito-contenido {
    animation: slideUp 0.3s ease forwards;
}

.modal-exito.cerrando .modal-exito-contenido {
    animation: slideDown 0.3s ease forwards;
}

.modal-exito-icono {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.modal-exito-icono svg {
    width: 80px;
    height: 80px;
    stroke-width: 3;
}

.modal-exito-titulo {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-exito-mensaje {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-exito-boton {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.modal-exito-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.modal-exito-boton:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Header */
.header {
    background: rgba(95, 240, 139, 0.95);
    color: #3c4043;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e8ed;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #f0f0f0;
    transform: translateY(-2px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Header Buttons Container */
.header-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1rem;
}

.haccp-badge {
    max-height: 40px;
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* Intranet Button */
.intranet-btn,
.tienda-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.intranet-btn:hover,
.tienda-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intranet-btn.active,
.tienda-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Botón sobre — Notificaciones Asistente IA */
.btn-sobre-asistente {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-sobre-asistente:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-sobre-asistente.tiene-nuevos {
    animation: parpadeo-rojo 0.8s ease-in-out infinite;
}

@keyframes parpadeo-rojo {
    0%, 100% {
        background: rgba(220, 38, 38, 0.85);
        border-color: #dc2626;
        box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    }
    50% {
        background: rgba(220, 38, 38, 0.2);
        border-color: rgba(220, 38, 38, 0.4);
        box-shadow: none;
    }
}

.badge-leads {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #dc2626;
    border: 2px solid white;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Hero Section - Google Labs Style with Animated Background */
.hero {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: floatBubbles 10s ease-in-out infinite;
}

@keyframes floatBubbles {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.6;
    }
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideInUp 1s ease-out;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '🧪';
    margin-right: 8px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: white;
    line-height: 1.2;
    animation: slideInUp 1s ease-out 0.2s both;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-title-highlight {
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    animation: slideInUp 1s ease-out 0.4s both;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.6s both;
}

.cta-button-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta-button-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.cta-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.8s both;
}

.hero-feature {
    text-align: center;
    max-width: 150px;
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-feature-icon:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.hero-feature h3 {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hero-feature p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Floating particles effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(200px);
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step p {
    color: #666;
    max-width: 300px;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.whatsapp-icon {
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.whatsapp-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

/* ── ASISTENTE IA PHARMA-LAT ── */
.ai-float-trigger {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ai-btn {
    position: relative;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%) !important;
}

.ai-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 114, 255, 0.4);
    animation: pulse-ai 2s infinite;
    z-index: -1;
}

@keyframes pulse-ai {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.ai-chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.ai-chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ai-chat-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 450px;
    max-width: 90vw;
    height: 600px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ai-chat-window.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.ai-chat-header {
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

.ai-chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.ai-msg {
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ai-msg.bot {
    background: #ffffff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.ai-msg.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-chat-input-area {
    padding: 1.2rem;
    display: flex;
    gap: 10px;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.ai-chat-input-area input {
    flex: 1;
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 15px;
    color: #333;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.ai-chat-input-area input:focus {
    border-color: #667eea;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .ai-chat-window {
        width: 90vw;
        height: 80vh;
        max-height: 80vh;
        border-radius: 12px;
    }
    .ai-float-trigger {
        top: auto;
        bottom: 150px;
        right: 20px;
    }
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 128, 0, 0.95);
        padding: 1rem 2rem;
        gap: 1rem;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .header {
        position: relative;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 0.5rem;
        margin-left: 0.5rem;
    }
    
    .intranet-btn,
    .tienda-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Accesibilidad - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only - Elementos ocultos visualmente pero accesibles */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mantener estilo de enlaces tel: y mailto: igual que texto normal */
address a,
.contact-item a {
    color: inherit;
    text-decoration: none;
}

address a:hover,
.contact-item a:hover {
    text-decoration: underline;
    color: inherit;
}

/* Asegurar que address no cambie el estilo */
address {
    font-style: normal;
}

/* Banner Promocional Tienda */
.banner-promocional {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.banner-promocional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.banner-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.banner-cta {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Sección de Productos */
.productos-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Tarjeta de Producto */
.producto-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.producto-imagen {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-titulo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.producto-codigo {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.producto-detalle {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.producto-precio {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.precio-moneda {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
}

.precio-valor {
    font-size: 1.8rem;
    color: #667eea;
    font-weight: 700;
}

.btn-agregar-carrito {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-agregar-carrito:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-agregar-carrito:active {
    transform: translateY(0);
}

/* Responsive para Productos */
@media (max-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-promocional {
        padding: 80px 0 40px;
        margin-top: 70px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .productos-section {
        padding: 60px 0;
    }
}

/* ============================================
   Estilos para Formulario de Login
   ============================================ */

.login-container {
    max-width: 500px;
    margin: 2rem auto 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.login-form-background {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-wrapper {
    position: relative;
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #333;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    flex: 1;
}

.password-wrapper input {
    padding-right: 45px;
}

.login-form input:focus {
    outline: none;
    background: transparent;
}

.login-form input::placeholder {
    color: #999;
}

.input-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 6px;
    width: 32px;
    height: 32px;
}

.input-icon:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.input-icon:focus {
    outline: none;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.eye-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    display: block;
}

.login-form button[type="submit"] {
    margin-top: 0.5rem;
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    padding: 14px 24px;
    font-weight: 600;
    border-radius: 12px;
}

.login-form button[type="submit"]:hover {
    background: linear-gradient(45deg, #5568d3, #653a8f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #fcc;
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive para login */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        margin: 1.5rem 1rem 0;
    }
    
    .login-form-background {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .login-form label {
        font-size: 0.9rem;
    }
    
    .login-form input {
        padding: 12px 14px;
        padding-right: 40px;
    }
    
    .input-icon {
        right: 10px;
        padding: 5px;
    }
}

/* Estilos para botones de confirmación */
.modal-confirmacion-botones {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.modal-confirmacion-boton {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.modal-confirmacion-boton-aceptar {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.modal-confirmacion-boton-aceptar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.modal-confirmacion-boton-aceptar:active {
    transform: translateY(0);
}

.modal-confirmacion-boton-cancelar {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.modal-confirmacion-boton-cancelar:hover {
    background: #e2e6ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.modal-confirmacion-boton-cancelar:active {
    transform: translateY(0);
}

/* --- BANNER ROTATIVO (HERO) --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

@media (max-width: 767px) {
    .hero-carousel {
        height: 540px;
        overflow: hidden;
        margin-top: 70px;
    }
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

@media (max-width: 767px) {
    .carousel-container {
        height: 540px;
    }
    .carousel-track {
        height: 540px;
    }
    .carousel-btn {
        top: auto;
        bottom: 55px;
        transform: none;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .carousel-dots {
        bottom: 18px;
    }
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

@media (max-width: 767px) {
    .carousel-slide {
        height: 540px;
        align-items: center;
    }
}

.carousel-content {
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
    color: white;
    z-index: 2;
}

.carousel-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.4);
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* --- ESTILOS ADAPTADOS SLIDE 1 (DÚO PODEROSO DE COLÁGENO) --- */
#slide-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slide-1-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    gap: 2rem;
}

.slide-1-left {
    flex: 1.2;
    text-align: left;
    color: white;
}

.slide-1-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-1-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.slide-1-title {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    margin-bottom: 1rem !important;
    text-shadow: none !important;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #ffe4ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: white;
}

.slide-1-subtitle {
    font-size: 1.15rem !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem !important;
    text-shadow: none !important;
}

.slide-1-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.slide-1-highlight {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.highlight-icon {
    color: #81e6d9;
    font-weight: bold;
}

.slide-1-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #8b2c40;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.slide-1-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
    background: #fff;
    color: #c4425a;
}

.slide-1-cta .arrow {
    transition: transform 0.3s ease;
}

.slide-1-cta:hover .arrow {
    transform: translateX(4px);
}

.slide-1-trust {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

.trust-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Imagen del Producto Flotante */
.product-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glow-effect {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

.product-image-float {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px) rotate(-1.5deg); }
    50% { transform: translateY(-15px) rotate(1.5deg); }
}

/* Elementos decorativos animados */
.floating-fruit {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    animation: floatFruit 8s ease-in-out infinite;
}

.leaf {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    animation: swayLeaf 7s ease-in-out infinite;
}

@keyframes floatFruit {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes swayLeaf {
    0%, 100% { transform: rotate(-5deg) translateX(0px); }
    50% { transform: rotate(5deg) translateX(8px); }
}

/* Responsivo para tablets */
@media (max-width: 991px) {
    .slide-1-container {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .slide-1-left {
        text-align: center;
        order: 1;
    }
    
    .slide-1-right {
        order: 2;
        margin-top: 0.5rem;
    }
    
    .slide-1-title {
        font-size: 2.5rem !important;
    }
    
    .slide-1-highlights {
        justify-content: center;
    }
    
    .slide-1-trust {
        justify-content: center;
    }
    
    .product-image-float {
        max-height: 200px;
    }
    
    .floating-fruit, .leaf {
        display: none;
    }
}

/* Responsivo para móviles */
@media (max-width: 767px) {
    #slide-1 {
        align-items: center;
    }
    
    .slide-1-container {
        flex-direction: column;
        padding: 1rem 1rem;
        gap: 0;
    }
    
    .slide-1-left {
        text-align: center;
        order: 1;
    }
    
    .slide-1-right {
        display: none;
    }
    
    .slide-1-header-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
        margin-bottom: 0.5rem;
    }
    
    .slide-1-title {
        font-size: 2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .slide-1-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .slide-1-highlights {
        justify-content: center;
        gap: 6px;
        margin-bottom: 1rem;
    }
    
    .slide-1-highlight {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .slide-1-cta {
        font-size: 0.9rem;
        padding: 11px 22px;
    }
    
    .slide-1-trust {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 0.8rem;
    }
    
    .trust-item {
        font-size: 0.7rem;
    }
    
    .floating-fruit, .leaf {
        display: none;
    }
}

/* --- ESTILOS ADAPTADOS SLIDE 2 (SUPERALIMENTOS ANDINOS) --- */
#slide-2 {
    background-color: #f5ede0 !important;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a1662f' fill-opacity='0.06'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 12l10-10h2L40 16V8zm0 4l12-12h2l-14 14V12zm0 4l16-16h2L40 24V16zm0 4l20-20h2L40 32V20zm0 4l24-24h2L40 40V24zm0 4l28-28h2L40 48V28zm0 4l32-32h2L40 56V32zm0 4l36-36h2L40 64V36zm0 4l40-40h2L40 72V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slide-2-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #a15618, #d4a017, #5a7a35, #a15618, #c44d29);
    z-index: 20;
    opacity: 0.9;
}

.slide-2-bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c44d29, #a15618, #d4a017, #5a7a35, #a15618);
    z-index: 20;
    opacity: 0.9;
}

.slide-2-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    gap: 2rem;
}

.slide-2-left {
    flex: 1.2;
    text-align: left;
    color: #2d1f14;
}

.slide-2-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide-2-header-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.slide-2-badge {
    background: linear-gradient(90deg, #5a7a35, #6d8f42);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(90,122,53,0.3);
}

.slide-2-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #2d1f14 !important;
    margin-bottom: 1.2rem !important;
    text-shadow: none !important;
}

.slide-2-title-highlight {
    color: #a15618;
    position: relative;
    display: inline-block;
}

.slide-2-title-highlight svg {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 6px;
}

.slide-2-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    color: #4a3828 !important;
    margin-bottom: 1.8rem !important;
    text-shadow: none !important;
}

.slide-2-subtitle-highlight {
    color: #5a7a35;
    font-weight: 700;
}

.slide-2-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #a15618, #c46f28);
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(161, 86, 24, 0.3);
}

.slide-2-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(161, 86, 24, 0.45);
    background: linear-gradient(90deg, #8a4814, #a15618);
}

.slide-2-cta svg {
    transition: transform 0.3s ease;
}

.slide-2-cta:hover svg {
    transform: translateX(4px);
}

.slide-2-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.slide-2-highlight {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(90, 122, 53, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3d2b1f;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.slide-2-highlight:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(90, 122, 53, 0.1);
}

.slide-2-highlight-icon {
    color: #5a7a35;
    font-weight: bold;
}

/* Imagen con Difuminado Gradual de Fondo */
.slide-2-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.slide-2-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f5ede0 0%, #f5ede0 15%, rgba(245,237,224,0.7) 40%, rgba(245,237,224,0) 80%);
    pointer-events: none;
    z-index: 2;
}

.slide-2-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

.slide-2-deco-svg {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    color: #d4a017;
    opacity: 0.25;
    z-index: 10;
}

/* Responsivo para tablets */
@media (max-width: 991px) {
    .slide-2-container {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .slide-2-left {
        text-align: center;
        order: 1;
    }
    
    .slide-2-right {
        order: 2;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .slide-2-header-block {
        justify-content: center;
    }
    
    .slide-2-title {
        font-size: 2.2rem !important;
    }
    
    .slide-2-highlights {
        justify-content: center;
    }
    
    .slide-2-image-wrapper {
        justify-content: center;
    }
    
    .slide-2-image-overlay {
        background: linear-gradient(180deg, #f5ede0 0%, #f5ede0 15%, rgba(245,237,224,0) 80%);
    }
    
    .slide-2-img {
        max-height: 200px;
    }
}

/* Responsivo para móviles */
@media (max-width: 767px) {
    #slide-2 {
        align-items: center;
    }
    
    .slide-2-container {
        flex-direction: column;
        padding: 1rem 1rem;
        gap: 0;
    }
    
    .slide-2-left {
        text-align: center;
        order: 1;
    }
    
    .slide-2-right {
        display: none;
    }
    
    .slide-2-header-block {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .slide-2-badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }
    
    .slide-2-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .slide-2-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 1rem !important;
    }
    
    .slide-2-highlights {
        justify-content: center;
        gap: 6px;
        margin-top: 0.8rem;
    }
    
    .slide-2-highlight {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .slide-2-cta {
        font-size: 0.9rem;
        padding: 11px 22px;
    }
}

/* --- ESTILOS ADAPTADOS SLIDE 3 (MARCA BLANCA / MAQUILA) --- */
#slide-3 {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Círculos decorativos borrosos */
.slide-3-glow-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 350px;
    background: #dbeafe;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.slide-3-glow-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: #e2e8f0;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.slide-3-bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #2563eb);
    z-index: 20;
}

.slide-3-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    gap: 2rem;
}

.slide-3-left {
    flex: 1.2;
    text-align: left;
    color: #0f172a;
}

.slide-3-right {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.slide-3-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.slide-3-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 3.2rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
    margin-bottom: 1rem !important;
    text-shadow: none !important;
}

.slide-3-title-highlight {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #2563eb;
}

.slide-3-subtitle {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
    margin-bottom: 1.5rem !important;
    text-shadow: none !important;
}

.slide-3-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 2rem;
}

.slide-3-bullet {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.slide-3-bullet:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.slide-3-bullet-icon {
    width: 28px;
    height: 28px;
    background: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.slide-3-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.slide-3-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.slide-3-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
    background: linear-gradient(90deg, #1d4ed8, #1e40af);
}

.slide-3-cta svg {
    transition: transform 0.3s ease;
}

.slide-3-cta:hover svg {
    transform: translateX(4px);
}

.slide-3-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
}

.slide-3-trust-icon {
    color: #2563eb;
    font-size: 0.9rem;
}

.slide-3-footer-types {
    display: flex;
    gap: 16px;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.slide-3-type-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}

.slide-3-type-icon {
    color: #2563eb;
}

/* Imagen de Maquila con etiqueta flotante */
.slide-3-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.slide-3-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0.8) 20%, rgba(248, 250, 252, 0) 60%);
    pointer-events: none;
    z-index: 2;
}

.slide-3-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 15px 35px rgba(15, 23, 42, 0.08));
}

.slide-3-floating-card {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slide3CardFloat 5s ease-in-out infinite;
}

@keyframes slide3CardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.slide-3-card-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.slide-3-card-text p:first-child {
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
}

.slide-3-card-text p:last-child {
    font-size: 11px;
    color: #0f172a;
    font-weight: 700;
}

/* Responsivo para tablets */
@media (max-width: 991px) {
    .slide-3-container {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .slide-3-left {
        text-align: center;
        order: 1;
    }
    
    .slide-3-right {
        order: 2;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .slide-3-header-badge {
        justify-content: center;
    }
    
    .slide-3-title {
        font-size: 2.2rem !important;
    }
    
    .slide-3-bullets {
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
        margin: 0 auto 1rem;
    }
    
    .slide-3-actions {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }
    
    .slide-3-footer-types {
        justify-content: center;
    }
    
    .slide-3-image-wrapper {
        justify-content: center;
    }
    
    .slide-3-img {
        max-height: 200px;
    }
    
    .slide-3-floating-card {
        display: none;
    }
    
    .slide-3-glow-1, .slide-3-glow-2 {
        display: none;
    }
}

/* Responsivo para móviles */
@media (max-width: 767px) {
    #slide-3 {
        align-items: center;
    }
    
    .slide-3-container {
        flex-direction: column;
        padding: 1rem 1rem;
        gap: 0;
    }
    
    .slide-3-left {
        text-align: center;
        order: 1;
    }
    
    .slide-3-right {
        display: none;
    }
    
    .slide-3-header-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
    }
    
    .slide-3-title {
        font-size: 1.85rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .slide-3-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 1rem !important;
    }
    
    .slide-3-bullets {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 1rem;
        max-width: 100%;
    }
    
    .slide-3-bullet {
        font-size: 0.75rem;
        padding: 7px 10px;
    }
    
    .slide-3-bullet-icon {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .slide-3-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-bottom: 0.8rem;
    }
    
    .slide-3-cta {
        font-size: 0.9rem;
        padding: 10px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .slide-3-trust {
        font-size: 0.75rem;
    }
    
    .slide-3-footer-types {
        justify-content: center;
        gap: 10px;
        padding-top: 0.6rem;
    }
    
    .slide-3-type-item {
        font-size: 0.7rem;
    }
    
    .slide-3-glow-1, .slide-3-glow-2,
    .slide-3-floating-card {
        display: none;
    }
}

/* --- ESTILOS ADAPTADOS SLIDE 4 (PROTEÍNA DE ARVEJA EN POLVO) --- */
#slide-4 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3e8 0%, #e8f5e1 50%, #d4edda 100%) !important;
    overflow: hidden;
}

#slide-4::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(76,175,80,0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139,195,74,0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,193,7,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Patrón de fondo */
.s4-pea-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234caf50' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Formas orgánicas */
.s4-organic-shape {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
    background: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(139,195,74,0.1));
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: s4Float 8s ease-in-out infinite;
}
.s4-shape-1 { width: 300px; height: 300px; top: -100px; right: 10%; animation-delay: 0s; }
.s4-shape-2 { width: 200px; height: 200px; bottom: -50px; right: 30%; animation-delay: 2s; }

@keyframes s4Float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(5deg); }
}

/* Layout principal */
.slide-4-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
    gap: 2rem;
    z-index: 2;
    position: relative;
    height: 100%;
}

/* Columna izquierda */
.slide-4-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}

.slide-4-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFC107, #FFB300);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255,193,7,0.3);
    align-self: flex-start;
}

.slide-4-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #1a3a1a !important;
    margin: 0 !important;
    text-shadow: none !important;
}

.slide-4-title-green {
    color: #2e7d32;
}

.slide-4-tagline {
    font-size: 0.9rem !important;
    color: #555 !important;
    font-weight: 500;
    margin: 0 !important;
    text-shadow: none !important;
    line-height: 1.4 !important;
}

.slide-4-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slide-4-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}
.slide-4-benefit:hover { transform: translateX(5px); }

.s4-icon-circle {
    width: 28px; height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(76,175,80,0.1);
    border: 2px solid rgba(76,175,80,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 0.72rem;
}

.slide-4-benefit span {
    font-size: 0.88rem;
    font-weight: 500;
    color: #374151;
}

.slide-4-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 11px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}
.slide-4-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.slide-4-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76,175,80,0.4); }
.slide-4-cta:hover::before { left: 100%; }

/* Columna derecha */
.slide-4-right {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.s4-product-img {
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
    animation: s4GentleFloat 4s ease-in-out infinite;
}

@keyframes s4GentleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-10px) scale(1.02); }
}

.s4-badge-cert {
    position: absolute;
    top: 4px; left: 4px;
    background: white;
    border-radius: 50%;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: #EAB308;
    font-size: 1.1rem;
}

.s4-badge-vegan {
    position: absolute;
    bottom: 20px; right: 4px;
    background: white;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #16a34a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- RESPONSIVE SLIDE 4 --- */
@media (max-width: 991px) {
    .slide-4-container {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .slide-4-left { align-items: center; }
    .slide-4-title { font-size: 2.4rem !important; }
    .slide-4-badge { align-self: auto; }
    .slide-4-cta  { align-self: auto; }
}

@media (max-width: 767px) {
    #slide-4 { align-items: center; }
    .slide-4-container {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    .slide-4-left { align-items: center; text-align: center; }
    .slide-4-right { display: none; }
    .slide-4-badge { font-size: 0.62rem; padding: 4px 12px; }
    .slide-4-title { font-size: 1.9rem !important; }
    .slide-4-tagline { font-size: 0.78rem !important; }
    .slide-4-benefit span { font-size: 0.78rem; }
    .slide-4-benefits { gap: 6px; }
    .slide-4-cta { font-size: 0.82rem; padding: 9px 18px; }
    .s4-pea-pattern, .s4-organic-shape { display: none; }
}

/* --- ESTILOS ADAPTADOS SLIDE 5 (FORMULACIONES A TU MEDIDA) --- */
#slide-5 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B00 0%, #FF0080 25%, #8B5CF6 50%, #00D9FF 75%, #39FF14 100%) !important;
    background-size: 400% 400% !important;
    animation: s5GradientShift 8s ease infinite;
    overflow: hidden;
}

@keyframes s5GradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Overlay de contraste */
.s5-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.12), transparent, transparent);
    pointer-events: none;
    z-index: 1;
}

/* Círculos de polvo */
.s5-powder {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: s5Pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.s5-powder-1 { width: 260px; height: 260px; background: #fde68a; top: -60px; left: 80px; }
.s5-powder-2 { width: 300px; height: 300px; background: #f9a8d4; bottom: -80px; left: 260px; animation-delay: 1s; }
.s5-powder-3 { width: 280px; height: 280px; background: #67e8f9; top: 35%; right: 120px; animation-delay: 2s; }

@keyframes s5Pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.2); opacity: 0.8; }
}

/* Formas geométricas */
.s5-geo {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.s5-geo-1 { width: 56px; height: 56px; top: 8%; left: 7%; opacity: 0.18; animation: s5Float 6s ease-in-out infinite; }
.s5-geo-2 { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,0.3); bottom: 22%; left: 22%; animation: s5Float 6s ease-in-out infinite 1s; }
.s5-geo-3 { width: 28px; height: 28px; transform: rotate(45deg); background: rgba(255,255,255,0.18); top: 36%; left: 48%; animation: s5Float 6s ease-in-out infinite 2s; }
.s5-geo-4 { width: 70px; height: 70px; bottom: 22%; right: 30%; opacity: 0.18; animation: s5Float 6s ease-in-out infinite 3s; }

/* Partículas ascienden */
.s5-particle {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: 0;
    animation: s5Particles 3s linear infinite;
}
@keyframes s5Particles {
    0%   { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
    10%  { opacity: 1; transform: scale(1); }
    100% { transform: translateY(-180px) translateX(40px) scale(0); opacity: 0; }
}

/* Animaciones float */
@keyframes s5Float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-18px) rotate(5deg); }
}
.s5-float      { animation: s5Float 6s ease-in-out infinite; }
.s5-float-d1   { animation: s5Float 6s ease-in-out infinite 1s; }
.s5-float-d2   { animation: s5Float 6s ease-in-out infinite 2s; }
.s5-float-d3   { animation: s5Float 6s ease-in-out infinite 3s; }

/* Layout principal */
.slide-5-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 2;
    position: relative;
}

/* Columna izquierda */
.slide-5-left {
    flex: 1.2;
    text-align: left;
    color: white;
}

.slide-5-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.slide-5-title {
    font-size: 3.8rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2) !important;
    color: white !important;
}

.slide-5-title-glow {
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.6));
}

.slide-5-subtitle {
    font-size: 1.1rem !important;
    font-weight: 600;
    color: rgba(255,255,255,0.95) !important;
    margin-bottom: 1.5rem !important;
    max-width: 520px;
    line-height: 1.5 !important;
    text-shadow: none !important;
}

.slide-5-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.8rem;
    max-width: 480px;
}

.slide-5-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.s5-feat-icon {
    width: 28px; height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.slide-5-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #1a1a2e;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.slide-5-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s;
}
.slide-5-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(0,0,0,0.3); }
.slide-5-cta:hover::before { left: 100%; }

/* Columna derecha */
.slide-5-right {
    flex: 0.8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.s5-flask-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.3));
}

/* Scoops posicionados */
.s5-scoop { position: absolute; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25)); }
.s5-scoop-1 { top: -30px; left: -50px; }
.s5-scoop-2 { bottom: -10px; right: -45px; }
.s5-scoop-3 { top: 50px; right: -55px; }

/* Ping dots */
.s5-ping {
    position: absolute;
    width: 12px; height: 12px;
    border-radius: 50%;
    animation: s5Ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
.s5-ping-yellow { background: #facc15; }
.s5-ping-pink   { background: #f472b6; }
.s5-ping-cyan   { background: #22d3ee; }

@keyframes s5Ping {
    0%   { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Badges flotantes */
.s5-badge-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 10px 16px;
    border-radius: 16px;
    color: white;
    z-index: 5;
    font-size: 1.1rem;
}
.s5-badge-float-top { top: 20px; right: 10px; }
.s5-badge-float-bot { bottom: 30px; left: -10px; }
.s5-badge-val { font-weight: 700; font-size: 0.9rem; line-height: 1; }
.s5-badge-lbl { font-size: 0.72rem; opacity: 0.85; }

/* --- RESPONSIVE SLIDE 5 --- */
@media (max-width: 991px) {
    .slide-5-container {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .slide-5-left { text-align: center; }
    .slide-5-right { margin-top: 0.5rem; }
    .slide-5-title { font-size: 2.8rem !important; }
    .slide-5-features { margin: 0 auto 1.5rem; }
    .slide-5-badge { margin: 0 auto 1rem; }
}

@media (max-width: 767px) {
    #slide-5 { align-items: center; }
    .slide-5-container {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    .slide-5-left { text-align: center; }
    .slide-5-right { display: none; }
    .slide-5-badge { font-size: 0.62rem; padding: 4px 12px; margin: 0 auto 0.5rem; }
    .slide-5-title { font-size: 2rem !important; margin-bottom: 0.5rem !important; }
    .slide-5-subtitle { font-size: 0.88rem !important; margin-bottom: 0.8rem !important; }
    .slide-5-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-bottom: 1rem;
        max-width: 100%;
    }
    .slide-5-feature { font-size: 0.78rem; }
    .slide-5-cta { font-size: 0.88rem; padding: 10px 22px; }
    .s5-powder, .s5-geo, .s5-particle { display: none; }
}

/* --- PRODUCTOS TERMINADOS CAROUSEL --- */
.productos-carousel-section {
    padding: 80px 0;
    background: #e9ecef;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.products-carousel-track {
    display: flex;
    gap: 15px;
    animation: scrollProducts 120s linear infinite;
    width: max-content;
}

.products-carousel-track:hover {
    animation-play-state: paused;
}

.products-carousel-track .producto-card {
    min-width: 160px;
    max-width: 160px;
    flex-shrink: 0;
}

.products-carousel-track .producto-card .producto-imagen {
    height: 120px;
}

.products-carousel-track .producto-card h3 {
    font-size: 0.85rem;
    height: 2.4em;
    overflow: hidden;
}

.products-carousel-track .producto-card .producto-precio {
    font-size: 0.9rem;
}

.products-carousel-track .producto-card .btn-agregar-carrito {
    padding: 5px 10px;
    font-size: 0.75rem;
}

@keyframes scrollProducts {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ocultar botones de navegación ya que el flujo es continuo */
.products-carousel-btn {
    display: none;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #667eea;
    color: white;
}

/* --- SECCIONES DETALLADAS DE SERVICIOS --- */
.service-details {
    padding-bottom: 80px;
}

.service-detail-item {
    padding: 100px 0;
    border-bottom: 1px solid #f0f0f0;
}

.service-detail-item.alternate {
    background: #e9ecef;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.detail-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
}

.detail-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.detail-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.detail-image-container {
    width: 100%;
    height: 400px;
    background: transparent;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: block;
    position: relative;
}

.detail-img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
    transition: transform 0.5s ease;
    margin: -5%;
}

.detail-image-container:hover .detail-img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
}

.placeholder-image .icon {
    font-size: 8rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .alternate .detail-row {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .carousel-content h1 { font-size: 2.5rem; }
    .carousel-content p { font-size: 1.1rem; }
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6c757d;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
  z-index: 2;
}

/* Text inside */
.slider::after {
  content: "No";
  color: white;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  right: 2px;
  font-size: 11px;
  font-family: sans-serif;
  font-weight: bold;
}

input:checked + .slider {
  background-color: #28a745;
}

input:focus + .slider {
  box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
  -webkit-transform: translateX(32px);
  -ms-transform: translateX(32px);
  transform: translateX(32px);
}

input:checked + .slider::after {
  content: "Si";
  right: auto;
  left: 20px;
}

/* ============================================
   PHS - Modal de inspección tipo planilla
   ============================================ */

.phs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.66);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.phs-modal-overlay.is-open {
    display: flex;
}

.phs-modal-open {
    overflow: hidden;
}

.phs-modal-panel {
    width: min(1320px, 100%);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    position: relative;
    padding: 28px;
    border: 1px solid rgba(102, 126, 234, 0.14);
}

.phs-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.phs-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
    transform: scale(1.05);
}

.phs-modal-header {
    text-align: center;
    margin-bottom: 18px;
    padding-right: 36px;
}

.phs-modal-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.phs-modal-header h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 8px;
}

.phs-modal-subtitle {
    color: #6b7280;
    max-width: 820px;
    margin: 0 auto;
    font-size: 0.98rem;
}

.phs-inspection-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.phs-inspection-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.phs-summary-box {
    border: 1px solid #dbe3ff;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border-radius: 14px;
    padding: 14px 16px;
}

.phs-summary-box span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 6px;
}

.phs-summary-box strong {
    font-size: 1rem;
    color: #111827;
    word-break: break-word;
}

.phs-inspection-grid,
.phs-notes-grid,
.phs-signature-grid,
.phs-extra-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.phs-signature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phs-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phs-field-span-2 {
    grid-column: span 2;
}

.phs-field label,
.phs-choice-group span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

.phs-field input,
.phs-field textarea {
    width: 100%;
    border: 1px solid #cfd8ff;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    font: inherit;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phs-field textarea {
    resize: vertical;
    min-height: 110px;
}

.phs-field input:focus,
.phs-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.phs-sheet-wrap {
    border: 1px solid #1f2937;
    border-radius: 14px;
    overflow: auto;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.04);
}

.phs-sheet-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.76rem;
    color: #111827;
}

.phs-sheet-table th,
.phs-sheet-table td {
    border: 1px solid #1f2937;
    padding: 5px 4px;
    text-align: center;
    vertical-align: middle;
}

.phs-sheet-table thead th {
    background: #ffffff;
    font-weight: 700;
}

.phs-sheet-table thead tr:first-child th {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.phs-sheet-table thead tr:nth-child(2) th {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    height: 148px;
    min-width: 36px;
    padding: 8px 2px;
    white-space: nowrap;
}

.phs-sheet-table tbody td input[type="text"],
.phs-sheet-table tbody td input[type="date"],
.phs-sheet-table tbody td input[type="time"] {
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 6px 4px;
    font-size: 0.74rem;
    text-align: center;
}

.phs-sheet-table tbody td input[type="text"]:focus,
.phs-sheet-table tbody td input[type="date"]:focus,
.phs-sheet-table tbody td input[type="time"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.phs-check-cell {
    padding: 0;
}

.phs-mini-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 36px;
    cursor: pointer;
}

.phs-mini-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.phs-mini-check span {
    width: 18px;
    height: 18px;
    border: 2px solid #374151;
    border-radius: 3px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.phs-mini-check input:checked + span {
    background: #16a34a;
    border-color: #16a34a;
}

.phs-mini-check input:checked + span::after {
    content: '✓';
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.phs-extra-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phs-choice-group {
    border: 1px solid #dbe3ff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    background: #fbfcff;
}

.phs-choice-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.phs-choice-group input {
    accent-color: #667eea;
}

.phs-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 6px;
}

.phs-inspection-shell {
    margin-top: 18px;
}

.phs-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.phs-table-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    margin: 0;
}

.phs-history-code,
.phs-history-date {
    white-space: nowrap;
}

.phs-history-code {
    width: 150px;
}

.phs-history-date {
    width: 120px;
    text-align: center;
}

.phs-inline-panel {
    background: #ffffff;
    border: 1px solid #dbe3ff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.phs-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.phs-inline-title {
    font-size: 1.35rem;
    color: #1f2937;
    margin: 2px 0 6px;
}

.phs-inline-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    max-width: 900px;
}

.phs-btn-primary,
.phs-btn-secondary {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phs-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.24);
}

.phs-btn-primary:hover,
.phs-btn-secondary:hover {
    transform: translateY(-1px);
}

.phs-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.phs-btn-secondary-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.24);
}

.phs-btn-secondary-blue:hover {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1200px) {
    .phs-modal-panel {
        padding: 22px;
    }

    .phs-inspection-summary,
    .phs-inspection-grid,
    .phs-notes-grid,
    .phs-signature-grid,
    .phs-extra-controls {
        grid-template-columns: 1fr;
    }

    .phs-field-span-2 {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .phs-modal-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .phs-modal-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .phs-modal-header {
        padding-right: 44px;
    }

    .phs-modal-header h2 {
        font-size: 1.35rem;
    }

    .phs-modal-actions {
        flex-direction: column-reverse;
    }

    .phs-modal-actions .phs-btn-primary,
    .phs-modal-actions .phs-btn-secondary {
        width: 100%;
    }

    .phs-sheet-table {
        min-width: 980px;
    }

    .phs-inline-header {
        flex-direction: column;
    }
}



/* ===== Logo 3D que gira (2026-10-31) =====
   Vuelta completa de 360 grados sobre el eje vertical cada 6 s, con pausa (mismo efecto
   que spftraning). Se aplica a las <img class="logo-3d"> del logo de encabezados y accesos. */
.logo-3d {
    object-fit: contain;          /* el PNG 3D no tiene la proporcion 150x80 de los atributos: no se deforma */
    transform-origin: 50% 50%;
    animation: logo-spin 6s ease-in-out infinite;
}

@keyframes logo-spin {
    0%, 55%   { transform: perspective(700px) rotateY(0); }
    85%, 100% { transform: perspective(700px) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-3d { animation: none; }
}
