@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary-color: #c81419;
    --secondary-color: #042652;
    --dark-red: #910f0f;
    --accent-color: #0087b2;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}
body {
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.6;
     margin: 0 !important;
    padding: 0 !important;
}

/* CONTENEDOR PRINCIPAL */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */
.hero-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: #fff;
     margin: 0;
    padding: 0;
    width: 100%;
    top: 0;
}

.hero-left {
    position: relative;
    overflow: hidden;
    background: url('/img/1copy.jpeg') center/cover;
    min-height: 500px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
    z-index: 2;
     margin: 0;
    padding: 0;
    width: 100%;
}

/* ============================================ */
/* NAVEGACIÓN - OPTIMIZADA */
/* ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: absolute;
    z-index: 10;
    box-shadow: rgba(172, 172, 173, 0.48) 4px -5px 16px 0px, rgba(255, 255, 255, 0.8) -6px -2px 16px 0px;
     width: 100%;
    margin: 0;
    box-sizing: border-box;
     top: 0;
    left: 0;
    right: 0;
}

.logo {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item a {
    text-decoration: none;
    color: #040239;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 13px;
    font-size: 1.2rem;
    background-color: #fff;
    box-shadow: 0 9px 15px rgba(38, 37, 37, 0.18);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8a121d, #ae0808, #f41414, transparent);
    border-radius: 50px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item a:hover::after {
    width: 100%;
    height: 4px;
}

.nav-item a:hover {
    color: #d90e0e;
    background: rgba(217, 14, 14, 0.05);
}



/* ============================================ */
/* BARRA SOCIAL FLOTANTE - APARECE DESPUÉS DEL HERO */
/* ============================================ */
.social-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-sidebar.visible {
    opacity: 0.9;
    visibility: visible;
    pointer-events: auto;
}

.social-sidebar:hover {
    opacity: 1;
    transform: translateY(-50%) translateX(-5px);
}

.social-link {
   width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgb(8, 2, 81);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: bolder;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
     background: rgba(240, 101, 101, 0.32); border-color: rgba(140, 18, 29, 0.4); 
    color: rgb(150, 11, 11);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link i {
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link:hover i {
    transform: scale(1.1);
  
}

/* ============================================ */
/* CONTENIDO HERO */
/* ============================================ */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem 0.5rem; /* MÁS COMPACTO */
    text-align: center;
    position: relative;
    z-index: 2;
    max-height: calc(100vh - 120px); /* MENOS ESPACIO PARA NAVBAR */
    overflow: hidden;
    margin-top: 40px; /* AGREGAR MARGEN SUPERIOR */
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(234, 102, 102, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
/* Clases para texto con colores */
.text-red {
    color: var(--primary-color);
    font-weight: 800;
}

.text-blue {
    color: var(--secondary-color);
    font-weight: 800;
}


/* CAJAS GLASSMORPHISM */
.info-boxes {
    display: flex;
    gap: 0.8rem; /* MÁS COMPACTO - era 1rem */
    margin-bottom: 1.2rem; /* MÁS COMPACTO - era 1.8rem */
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.3s both;
    flex-wrap: wrap;
}

.info-box {
   background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    padding: 0.6rem 1rem; /* MÁS COMPACTO */
    border-radius: 15px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    min-width: 110px; /* MÁS COMPACTO */
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c40e41, #1a365d);
    border-radius: 15px 15px 0 0;
}

.info-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.info-box-label {
     font-size: 0.6rem; /* MÁS PEQUEÑO */
    font-weight: 800;
    color: #bf0a2c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem; /* MÁS COMPACTO */
    text-align: center;
}

.info-box-value {
     font-size: 0.75rem; /* MÁS PEQUEÑO */
    font-weight: 800;
    color: #052151;
    line-height: 1.1;
    text-align: center;
}

/* TÍTULO Y SUBTÍTULO HERO */
.hero-title {
    font-size: 2.2rem; /* MÁS PEQUEÑO - era 2.6rem */
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.8rem; /* MÁS COMPACTO - era 1rem */
    line-height: 0.95; /* MÁS COMPACTO - era 1.05 */
    max-width: 600px;
    background: linear-gradient(135deg, #c40e41, #1a365d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-title .second-line {
    display: block !important;
    color: #1a365d !important;
    background: none !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: #1a365d !important;
    background-clip: text !important;
    font-weight: 700;
    margin-top: 0.1rem; /* MÁS COMPACTO */
    font-size: 0.8em; /* MÁS PEQUEÑA LA SEGUNDA LÍNEA */
}

.hero-subtitle {
   font-size: 1.1rem; /* MÁS PEQUEÑO - era 1.3rem */
    color: #042257;
    margin-bottom: 1.5rem; /* MÁS COMPACTO - era 2rem */
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 600;
    line-height: 1.3; /* MÁS COMPACTO */
}

/* BOTONES HERO */
.hero-buttons {
   display: flex;
    gap: 0.6rem; /* MÁS COMPACTO */
    animation: fadeInUp 1s ease-out 0.4s both;
    flex-wrap: wrap;
    justify-content: center;

}

.btn {
   padding: 0.7rem 1.5rem; /* MÁS COMPACTO */
    border: none;
    border-radius: 12px;
    font-size: 0.85rem; /* MÁS PEQUEÑO */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #d90e0e, #910f0f);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 7, 7, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 17, 54, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #020a2d;
    border: 2px solid #d00f18;
}

.btn-secondary:hover {
     background: #9d1010;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #020a2d;
    border: 2px solid #d00f18;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* FOOTER HERO */
.hero-footer {
    position: absolute;
    bottom: 0;
    right: 0; /* Cambiar de left: 0 a right: 0 */
    width: 50%; /* Solo ocupar el lado derecho */
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2rem 0;
    height: 120px;

}

.footer-svg {
   position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100vw;
    height: 120px;
    margin-left: calc(-50vw + 50%);
}

.footer-image {
    width: 220px;
    height: auto;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
    /*! filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2)) 
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); */
}

.footer-image:hover {
  transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)) 
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* ============================================ */
/* SECCIONES PRODUCTOS Y CONTACTO */
/* ============================================ */
.products {
    padding: 100px 0;
    background: linear-gradient(135deg, #fef2f2 0%, var(--white) 50%, #fef2f2 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.products .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    width: 100%;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #042652;
    margin-bottom: 15px;
    position: relative;
}

.products .section-header h2 {
    color: #000;
}

.products .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-images {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y; /* Permite scroll vertical pero intercepta horizontal */
    user-select: none; /* Evita selección de texto durante swipe */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: translateX(0); /* Preparar para animaciones de swipe */
}

.slide.active {
    opacity: 1;
}
/* Indicador visual durante el swipe */
.image-slider.swiping .slide {
    transition: transform 0.1s linear;
}

.image-slider.swiping .slide.active {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.dot::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    /* Área de touch invisible más grande */
}
.dot.active {
    background: var(--white);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
    position: relative;
}

.product-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.product-info ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #000;
    line-height: 1.5;
    font-weight: 600;
}

.product-info ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
 
}
/* ============================================ */
/* CSS OBLIGATORIO PARA QUE FUNCIONE EL SWIPE */
/* ============================================ */

/* Mejorar el contenedor de imágenes para touch */
.product-images {
    position: relative;
    height: 250px;
    overflow: hidden;
    /* CRÍTICO: Permitir interacción táctil */
    touch-action: pan-y;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    /* CRÍTICO: Configuración para touch */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Cursor que indica interactividad */
    cursor: grab;
}

.image-slider:active {
    cursor: grabbing;
}

/* Mejorar slides para transiciones */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    /* Evitar selección de texto/imagen */
    user-select: none;
    -webkit-user-select: none;
}

.slide.active {
    opacity: 1;
}

/* Mejorar imágenes para touch */
.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* CRÍTICO: Evitar comportamientos por defecto */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Evitar highlight en móviles */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mejorar dots para touch */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    /* Área de touch más grande */
    position: relative;
}

/* Área de touch invisible más grande para los dots */
.dot::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
}

.dot.active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================ */
/* SECCIÓN CONTACTO */
/* ============================================ */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    width: 100%;
    display: block;
}

.contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

.contact-info {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--gray-600);
    margin: 0;
    text-decoration: none;
}

/* ============================================ */
/* FORMULARIOS */
/* ============================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #f4f4f4;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    margin-bottom: 15px;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
    background: var(--white);
    border-radius: 15px;
    padding: 5px;
    box-shadow: var(--shadow);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.3);
}

.tab-button:hover:not(.active) {
    background: var(--gray-100);
    color: var(--secondary-color);
}

.tab-button i {
    font-size: 18px;
}

.form-container {
    order: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.form-content h3 {
    color: var(--gray-900);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

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

/* ============================================ */
/* FOOTER */
/* ============================================ */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    width: 100%;
    display: block;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-logo img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li i {
    color: var(--primary-color);
    width: 16px;
}

.footer-section ul li a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 30px;
}

.agroexpo-footer-logo {
    height: 80px;
    width: auto;
}

.anniversary-logo {
    height: 60px;
    width: auto;
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 14px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================ */
/* BOTÓN VOLVER ARRIBA */
/* ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-red));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    z-index: 1002;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, var(--dark-red), var(--primary-color));
}

/* BOTÓN WHATSAPP FLOTANTE */
/* ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1002;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.whatsapp-float:hover {
    background: #1eb854;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

/* Animación pulse */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.3;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}


/* ============================================ */
/* VALIDACIÓN Y MODAL */
/* ============================================ */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.validation-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    text-align: left;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fffafa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-icon .fas {
    font-size: 50px;
    padding: 15px;
    border-radius: 50%;
    color: #fff;
}

.modal-icon .fa-check-circle {
    background-color: #28a745;
}

.modal-icon .fa-exclamation-triangle,
.modal-icon .fa-times-circle {
    background-color: #dc3545;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.modal-content .btn.btn-primary {
    background-color: #B61B1B;
    border: 4px groove #f44b3a;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer; 
    text-decoration: none;
    font-size: 16px; 
    min-width: 120px;
    font-weight: 600;
}

/* ============================================ */
/* ANIMACIONES */
/* ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - OPTIMIZADO */
/* ============================================ */

/* DESKTOP EXTRA GRANDE: 1500px y abajo */
@media (max-width: 1500px) {
    .logo {
        width: 200px;
    }
    
    .navbar {
        padding: 1.5rem 0.5rem;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 30px; /* AGREGAR - más compacto que desktop */
    }
    .hero-container {
        min-height: 100vh;
        max-height: none;
        padding-bottom: 1rem;
    }
    .hero-content {
         max-height: none;
    }
.hero-buttons {
        margin-bottom: 1.5rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .form-container {
        order: 1; /* Izquierda */
    }
    
    .contact-info {
        order: 2; /* Derecha */
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
    .footer-image {
        width: 180px;
    }
}

/* DESKTOP: 1200px y abajo */
@media (max-width: 1200px) {
    /* HERO CAMBIA A VERTICAL */
    .hero-container {
       grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
        min-height: 100vh;
        max-height: none; /* AGREGAR */
        padding-bottom: 2rem; /* AGREGAR */
    }
    
    .hero-left {
         order: 2;
        height: 500px;
        margin: 0 2rem 1rem 2rem;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .hero-right {
        order: 1;
    }
      .hero-title {
    margin-top: 80px;
  
}
    .hero-content {
        max-height: none;
        padding-bottom: 1rem;
    }
     .hero-buttons {
        margin-bottom: 2rem;
    }
    .hero-footer {

       order: 3;
        position: relative; /* CAMBIAR de absolute */
        margin-top: 1rem; /* AGREGAR */
        height: 100px;
        left: 0; /* CAMBIAR de right: 0 */
        right: auto; /* RESETEAR */
        width: 100%; /* CAMBIAR de 50% */
        justify-content: space-between;
        flex-direction: row;
        padding: 1rem 2rem 2rem;
    }
    .footer-image {
        width: 180px; /* REDUCIR TAMAÑO PERO MANTENER EXTREMOS */
    }
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .contact-content {
         grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .form-container {
        order: 1; /* Izquierda */
    }
      .contact-info {
        order: 2; /* Derecha */
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .social-sidebar {
        right: 20px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .social-link i {
        font-size: 16px;
    }
}
/* Tablets */
@media (max-width: 1024px) {
 
      .hero-title {
        margin-top: 70px; /* MÁS COMPACTO */
    }
    .social-sidebar {
        right: 15px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
    .hero-container {
        min-height: 100vh;
        max-height: none;
        padding-bottom: 1.5rem;
    }
    
    .hero-content {
        max-height: none;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    .hero-footer {
        left: 0;
        right: auto;
        width: 100%;
        position: relative;
    }
}

/* TABLET: 992px y abajo */
@media (max-width: 992px) {
   /* Ocultar barra social en móviles */
  .social-sidebar {
    display: none !important;
  }
  .hero-footer {
       padding: 0.5rem 1.5rem 1.5rem;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        height: 80px;
        /* AGREGAR ESTAS LÍNEAS: */
        left: 0;
        right: auto;
        width: 100%;
        position: relative;
    }
     .footer-image {
        width: 180px;
    }
  /* Estilos del contenedor derecho del héroe */
  .hero-right {
    width: 100%;
    padding: 20px;
  }

  .hero-title {
    font-size: 2rem;
      margin-top: 60px; /* AÚN MÁS COMPACTO */
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
.hero-container {
        min-height: 100vh;
        max-height: none;
        padding-bottom: 1rem;
    }
    
    .hero-content {
        max-height: none;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
  
  /* Cuadros de info uno debajo del otro */
  .info-boxes {
    flex-direction: column;
    align-items: center;
  }

  .info-box {
    margin: 10px 0;
    width: 80%;
  }

  .navbar {
    padding: 1rem 1rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
  }
  /* Menú oculto inicialmente */
  .nav-menu {
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 100%;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
  }

  /* Mostrar el menú cuando está activo */
  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
  .contact-content {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 30px;
    }
    
    /* En tablet/móvil: formulario PRIMERO (arriba) */
    .form-container {
        order: 1;
        padding: 25px;
        margin-bottom: 20px;
    }
    
    /* En tablet/móvil: info SEGUNDO (abajo) */
    .contact-info {
        order: 2;
    }
    
    /* Mejorar dots para tablet */
    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
    
    /* Hacer el slider más sensible al touch */
    .image-slider {
        touch-action: manipulation;
    }
    
    .product-images {
        height: 220px; /* Reducir altura en tablet/móvil */
    }
  /* Ajuste del footer si lo necesitas */
  .footer .footer-section {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  /* AGREGAR: Activar WhatsApp en 992px */
    .whatsapp-float {
        display: flex !important;
        bottom: 80px;
        right: 25px;
        width: 58px;
        height: 58px;
        font-size: 26px;
    }
    
    .back-to-top {
        bottom: 25px;
        left: 25px;
    }
     /* Hacer más obvio que se puede hacer swipe */
    .product-images::after {
        content: '← →';
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.7);
        font-size: 18px;
        font-weight: bold;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        animation: swipe-hint 4s infinite;
        z-index: 15;
        pointer-events: none;
    }
    
    @keyframes swipe-hint {
        0%, 80%, 100% { 
            opacity: 0;
            transform: translateY(-50%) translateX(0);
        }
        10%, 70% { 
            opacity: 1;
            transform: translateY(-50%) translateX(-5px);
        }
    }
    
    /* Ocultar indicador después de interacción */
    .product-images.interacted::after {
        display: none;
    }
    
    /* Hacer los dots más grandes en móvil */
    .dot {
        width: 14px;
        height: 14px;
    }
    
    .dot::before {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
    }
    
    /* Optimizaciones específicas para móviles */
    .image-slider {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        
        /* Performance en móvil */
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .slide {
        will-change: opacity;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Asegurar que toda el área sea táctil */
    .product-images {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
}

/* TABLET/MÓVIL: 768px y abajo */
@media (max-width: 768px) {
    
   
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 240px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        list-style: none;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-item a {
        font-size: 1rem;
        padding: 12px 20px;
        width: 180px;
        text-align: center;
        display: block;
        margin: 0 auto;
    }

    .navbar {
        
    padding: 1rem 1rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
  
    }
    
    .logo {
        width: 160px;
    }

    /* Barra social en móvil - abajo con fondo transparente */
    .social-sidebar {
        display: none !important;
    }
    /* HERO MÓVIL */
    .hero-left {
        height: 350px;
        margin: 0 1.5rem 1rem 1.5rem;
        border-radius: 12px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
         max-height: none;  
    }
     .hero-container {
        min-height: 100vh;
        max-height: none;
        padding-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-top: 50px; /* COMPACTO PARA MÓVIL */
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        width: 100%;
        margin-bottom: 1rem; 
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        font-size: 0.9rem;
    }

    /* INFO BOXES MÓVIL */
    .info-boxes {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-bottom: 1.5rem;
    }
    
    .info-box {
        width: 160px;
        padding: 0.8rem 1rem;
    }

    .hero-footer {
     padding: 0.5rem 1.5rem 1.5rem;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        height: 80px;
        left: 0;
        right: auto;
        width: 100%;
        position: relative;
    }
    
    .footer-image {
        width: 160px;
    }

    /* SECCIONES GENERALES */
    .products, .contact {
        padding: 60px 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
     .product-images {
        height: 200px;
    }
     .slider-dots {
        bottom: 8px;
        gap: 6px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* FORMULARIOS MÓVIL */
    .form-tabs {
        max-width: 350px;
        padding: 3px;
    }
    
    .tab-button {
        font-size: 13px;
        padding: 10px 15px;
        gap: 4px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .form-content h3 {
        font-size: 1.3rem;
    }

    /* OCULTAR ELEMENTOS DECORATIVOS */
    .floating-circle {
        display: none;
    }
    .whatsapp-float {
    display: flex !important;
    bottom: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
}
.back-to-top {
    bottom: 20px;
    left: 20px;
}

}

/* MÓVIL PEQUEÑO: 480px y abajo */
@media (max-width: 480px) {
    .navbar {
       padding: 0.6rem 0.3rem;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        box-sizing: border-box;
    }
    
    .logo {
        width: 140px;
    }
    
    .hero-title {
        font-size: 1.6rem;
          margin-top: 35px; /* COMPACTO PARA MÓVIL */
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
     .hero-container {
        min-height: 100vh;
        max-height: none;
        padding-bottom: 1rem;
    }
    .hero-left {
        height: 300px;
        margin: 0 1rem 1rem 1rem;
        border-radius: 10px;
    }
    
    .hero-footer {
         padding: 0.5rem 1rem 1rem;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        height: 70px;
    }
     .footer-image {
        width: 120px; /* AÚN MÁS PEQUEÑAS PERO EN EXTREMOS */
    }
    .info-box {
        width: 140px;
        padding: 0.7rem 0.8rem;
    }
    
    .info-box-label {
        font-size: 0.6rem;
    }
    
    .info-box-value {
        font-size: 0.75rem;
    }

   

    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding: 1rem 0.5rem;
        max-height: none;
    }
.hero-buttons {
        margin-bottom: 1rem;
    }
    .btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.2rem;
    }

    .form-container {
        padding: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 13px;
        padding: 10px 12px;
    }

    .tab-button {
        font-size: 12px;
        padding: 10px 15px;
    }

    .nav-menu {
        width: 220px;
    }

    .nav-item a {
        width: 160px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

   .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 70px;
    right: 15px;
}

.back-to-top {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
}

    /* MODAL MÓVIL */
    .modal-content {
        padding: 20px;
        max-width: 350px;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
    }
    
    .modal-content p {
        font-size: 0.9rem;
    }
    
    .modal-icon .fas {
        font-size: 40px;
        padding: 12px;
    }
     .social-sidebar {
        bottom: 15px;
        padding: 6px 12px;
        gap: 6px;
        left: 50%;
        /* ✅ Corregir posición inicial - estaba oculta por defecto */
        transform: translateX(-50%) translateY(0);
        /* Agregar transición suave */
        transition: all 0.3s ease;
    }

    /* Estado oculto para móviles pequeños */
    .social-sidebar:not(.visible) {
        transform: translateX(-50%) translateY(80px);
        opacity: 0;
    }

    .social-sidebar.visible {
        transform: translateX(-50%) translateY(0);
        opacity: 0.95;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .social-link i {
        font-size: 14px;
    }

    /* SIN PADDING EXTRA */
    body {
        padding-bottom: 0 !important;
    }
    .product-images {
        height: 200px;
    }
    
    .slider-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* MÓVIL MUY PEQUEÑO: 360px y abajo */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
        margin-top: 25px; /* MUY COMPACTO */
    }
    .hero-container {
        min-height: 100vh;
        max-height: none;
        padding-bottom: 1rem;
    }
      .hero-content {
        max-height: none;
    }
    
    .hero-buttons {
        margin-bottom: 1rem;
    }
    .info-box {
        width: 120px;
        padding: 0.6rem;
    }
    
    .nav-menu {
        width: 200px;
    }
    
    .nav-item a {
        width: 140px;
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.6rem 1rem;
    }
    .hero-footer {
         padding: 0.5rem 0.5rem 1rem;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        height: 60px;
    }
    
    .footer-image {
        width: 100px; /* PEQUEÑAS PERO VISIBLES EN EXTREMOS */
    }
   .form-container {
        padding: 15px;
    }
    
    .product-images {
        height: 180px;
    }
    
   
}

/* ============================================ */
/* INDICADORES ADICIONALES PARA SWIPE */
/* ============================================ */

/* Sutil indicador de que se puede hacer swipe - SOLO EN DISPOSITIVOS TÁCTILES */
@media (max-width: 992px) {
    .product-images::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        animation: swipe-hint 3s infinite;
        z-index: 5;
    }
    
    @keyframes swipe-hint {
        0%, 70%, 100% { opacity: 0; }
        10%, 60% { opacity: 1; }
    }
    
    /* Ocultar el indicador después de interactuar */
    .product-images.interacted::after {
        display: none;
    }
}