/* COFRUPA - Colores del logo: Vino Tinto (70%) + Verde (30%) */
/* Paleta de colores: #797F7E, #5F1A37 (vino), #045806 (verde), #EBEAEC, #04030F */

:root {
    --color-primary: #5F1A37;        /* Vino tinto - 70% uso */
    --color-secondary: #045806;      /* Verde - 30% uso */
    --color-accent: #8B2347;         /* Vino más claro */
    --color-dark: #04030F;
    --color-gray: #797F7E;
    --color-light: #EBEAEC;
    --color-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    box-sizing: border-box;
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    scroll-behavior: smooth;
}

/* Justificar todos los párrafos */
p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
}


/* ============= HEADER ============= */
.header-fruteec {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.header-container-fruteec {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header-logo-fruteec img {
    height: 91px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-fruteec ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 35px;
}

.nav-fruteec a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-fruteec a:hover {
    color: var(--color-primary);
}

.language-switch {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switch img {
    width: 35px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.language-switch a.active img,
.language-switch img:hover {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-dark);
}

/* ============= HERO SECTION CON VIDEO ============= */
.hero-fruteec {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 70%, var(--color-secondary) 100%);
}

/* Video de fondo */
.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content-fruteec {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle-fruteec {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-title-fruteec {
    color: var(--color-white);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-description-fruteec {
    color: var(--color-white);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95;
}

.hero-btn-fruteec {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 30%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(4, 88, 6, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-fruteec:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(4, 88, 6, 0.5);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 40%, var(--color-primary) 100%);
}

/* ============= ¿POR QUÉ NOSOTROS? ============= */
.why-us-fruteec {
    background: var(--color-white);
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section-title-fruteec {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 60px;
    text-transform: uppercase;
}

.why-us-cards {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.why-card {
    background: white;
    padding: 45px 30px 40px 30px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Línea decorativa superior */
.why-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 70%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.why-card:hover::after {
    transform: scaleX(1);
}

/* Efecto de brillo en hover */
.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(4, 88, 6, 0.05), transparent);
    transition: left 0.6s;
    z-index: 0;
}

.why-card:hover::before {
    left: 100%;
}

/* Asegurar que el contenido esté sobre los efectos */
.why-card h3,
.why-card p,
.card-number-badge {
    position: relative;
    z-index: 1;
}

.why-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Número de la tarjeta en marca de agua */
.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(95, 26, 55, 0.08);
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    z-index: 0;
    transition: all 0.3s;
}

.why-card:hover .card-number {
    color: rgba(95, 26, 55, 0.12);
    transform: scale(1.05);
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 18px;
    margin-top: 15px;
    text-transform: uppercase;
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.25;
    letter-spacing: 0.3px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(95, 26, 55, 0.15);
}

.why-card p {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
    font-weight: 400;
}

/* ============= ANIMACIONES DE ENTRADA ============= */

/* Título animado */
.section-title-fruteec.animate-title {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title-fruteec.animate-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tarjetas animadas */
.why-card.animate-card {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card.animate-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cardBounce 0.6s ease-out;
}

@keyframes cardBounce {
    0% {
        transform: translateY(50px) scale(0.9);
    }
    60% {
        transform: translateY(-10px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Efecto de onda al aparecer */
.why-card.animate-card.visible::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(4, 88, 6, 0.1);
    transform: translate(-50%, -50%);
    animation: ripple 0.8s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* ============= PRODUCTOS ============= */
.productos-fruteec {
    background: var(--color-light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Imagen de fondo degradada a la derecha */
.productos-background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('/image/carrusel/IMG_9978.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 100%);
}

/* Contenedor wrapper para el contenido */
.productos-content-wrapper {
    position: relative;
    z-index: 1;
}

.productos-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.producto-item {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.producto-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.producto-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}

.producto-item:hover img {
    transform: scale(1.1);
}

.producto-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.producto-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
    margin-top: 0;
    min-height: 3.2em;
    line-height: 1.3;
}

.producto-info p {
    font-size: 1rem;
    color: var(--color-gray);
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
    margin-top: 0;
    margin-bottom: 15px;
}

.btn-download-datasheet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), #8b1f4a);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(95, 26, 55, 0.2);
    align-self: flex-start;
}

.btn-download-datasheet:hover {
    background: linear-gradient(135deg, #8b1f4a, var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 26, 55, 0.35);
}

.btn-download-datasheet i {
    font-size: 1.1rem;
}

/* ============= QUIÉNES SOMOS ============= */
.about-fruteec {
    background: var(--color-white);
    padding: 80px 20px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
}

.carousel-fruteec {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* Video permanente en sección Quiénes Somos */
.about-video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.about-video-permanent {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img,
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-carousel-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(4, 88, 6, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
    transition: all 0.3s;
}

.add-carousel-btn:hover {
    background: var(--color-primary);
    transform: scale(1.05);
}

/* ============= CERTIFICACIONES ============= */
.certifications-fruteec {
    background: var(--color-light);
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.certifications-subtitle {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--color-gray);
    line-height: 1.7;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
}

.certifications-carousel {
    max-width: 1000px;
    margin: 0 auto;
}

.cert-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.cert-carousel-track {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.cert-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.cert-carousel-slide img,
.cert-carousel-img {
    max-height: 325px;
    max-width: 130%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
    transform: scale(1.3);
}

.cert-carousel-btn {
    position: absolute;
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    font-size: 20px;
}

.cert-carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.cert-carousel-btn.prev {
    left: -25px;
}

.cert-carousel-btn.next {
    right: -25px;
}

.cert-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.cert-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gray);
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s;
}

.cert-dot.active {
    background: var(--color-primary);
    opacity: 1;
    transform: scale(1.3);
}

.cert-dot:hover {
    opacity: 0.8;
}

/* ============= MERCADOS ============= */
.markets-fruteec {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.markets-fruteec .section-title-fruteec {
    color: var(--color-white);
}

.markets-content {
    max-width: 1200px;
    margin: 0 auto;
}

.markets-content img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

/* ============= CONTACTO ============= */
.contact-fruteec {
    background: var(--color-white);
    padding: 80px 20px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Grid de equipo de contacto - 3 tarjetas */
.contact-team-grid {
    max-width: 1200px;
    margin: 0 auto 50px;
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Tarjeta de persona de contacto */
.contact-person-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(95, 26, 55, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.contact-person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 70%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.contact-person-card:hover::before {
    transform: scaleX(1);
}

.contact-person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(95, 26, 55, 0.2);
    border-color: var(--color-primary);
}

/* Tarjeta destacada (CEO) */
.contact-highlight {
    border: 2px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(95, 26, 55, 0.03) 0%, white 100%);
}

.contact-highlight::after {
    content: 'CEO';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Icono de contacto */
.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 70%, var(--color-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(95, 26, 55, 0.3);
}

.contact-person-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-person-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.contact-role {
    font-size: 1rem;
    color: var(--color-gray);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Link de email en tarjeta */
.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 12px 20px;
    background: rgba(95, 26, 55, 0.05);
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.contact-email-link:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 70%, var(--color-secondary) 100%);
    color: white;
    transform: translateX(5px);
}

.contact-email-link i {
    font-size: 1.1rem;
}

/* Información general de contacto */
.contact-general-info {
    max-width: 900px;
    margin: 40px auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(95, 26, 55, 0.08) 0%, rgba(95, 26, 55, 0.05) 70%, rgba(4, 88, 6, 0.05) 100%);
    border-radius: 15px;
}

.general-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.general-info-item i {
    font-size: 1.8rem;
    color: var(--color-secondary);
    margin-top: 5px;
}

.general-info-item strong {
    display: block;
    color: var(--color-dark);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.general-info-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s;
}

.general-info-item a:hover {
    color: var(--color-secondary);
}

.general-info-item .availability {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 3px;
    font-style: italic;
}

/* Formulario de Contacto - MÁS ANCHO */
.contact-form-section {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.contact-form-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.contact-form-fruteec {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Form groups con validación */
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form-fruteec input,
.contact-form-fruteec textarea {
    padding: 18px 25px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
    width: 100%;
}

.contact-form-fruteec textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-fruteec input:focus,
.contact-form-fruteec textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(4, 88, 6, 0.1);
    transform: translateY(-2px);
}

/* Estados de validación */
.contact-form-fruteec input.valid,
.contact-form-fruteec textarea.valid {
    border-color: #27ae60;
    background: #f0f9f4;
}

.contact-form-fruteec input.invalid,
.contact-form-fruteec textarea.invalid {
    border-color: #e74c3c;
    background: #fef5f5;
}

/* Icono de validación */
.contact-form-fruteec input.valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2327ae60'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
    padding-right: 50px;
}

.contact-form-fruteec input.invalid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
    padding-right: 50px;
}

/* Mensajes de error */
.error-message {
    color: #e74c3c;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    min-height: 18px;
    display: block;
}

/* Contador de caracteres */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Google reCAPTCHA wrapper */
.g-recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.g-recaptcha {
    display: inline-block;
}

.btn-submit-fruteec {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 70%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 18px 60px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(95, 26, 55, 0.3);
}

/* Elementos del botón */
.btn-submit-fruteec .btn-text {
    transition: opacity 0.3s;
    display: block;
}

.btn-submit-fruteec .btn-ship {
    display: none;
    font-size: 32px;
    animation: none;
}

/* Cuando el barco está zarpando */
.btn-submit-fruteec.ship-sailing {
    background: linear-gradient(135deg, #4A90E2 0%, #2c5aa0 100%);
}

.btn-submit-fruteec.ship-sailing .btn-ship {
    animation: shipSailing 2s ease-in-out forwards;
}

@keyframes shipSailing {
    0% {
        transform: translateX(-100px) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
        transform: translateX(-50px) scale(0.8) rotate(-5deg);
    }
    50% {
        transform: translateX(0) scale(1) rotate(0deg);
    }
    100% {
        transform: translateX(150px) scale(1.2) rotate(5deg);
        opacity: 0;
    }
}

/* Olas animadas */
.wave {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
}

.wave-1 {
    left: 20%;
    animation: wave1Animation 2s ease-in-out forwards;
}

.wave-2 {
    left: 40%;
    animation: wave2Animation 2s ease-in-out 0.3s forwards;
}

@keyframes wave1Animation {
    0% {
        bottom: 15px;
        opacity: 0;
        transform: translateX(-20px);
    }
    30% {
        opacity: 0.8;
    }
    100% {
        bottom: 15px;
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes wave2Animation {
    0% {
        bottom: 15px;
        opacity: 0;
        transform: translateX(-10px);
    }
    30% {
        opacity: 0.6;
    }
    100% {
        bottom: 15px;
        opacity: 0;
        transform: translateX(80px);
    }
}

/* Estado de éxito */
.btn-submit-fruteec.success-sent {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 70%, var(--color-primary) 100%);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Estado deshabilitado durante el envío */
.btn-submit-fruteec:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.btn-submit-fruteec:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(95, 26, 55, 0.4);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 60%, var(--color-secondary) 100%);
}

/* ============= FOOTER ============= */
.footer-fruteec {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 60px 20px 30px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.footer-container-fruteec {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.footer-logo-fruteec {
    max-width: 220px;
    height: auto;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}

.footer-logo-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-links,
.footer-contact,
.footer-certifications {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.footer-links h4,
.footer-contact h4,
.footer-certifications h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-links a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--color-light);
}

.footer-contact-item i {
    color: var(--color-primary);
    font-size: 18px;
}

.footer-contact-item a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--color-primary);
}

.footer-cert-images-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-cert-images {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-cert-images img {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 10px 0;
    color: var(--color-gray);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.footer-bottom a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--color-white);
}

/* Efecto neon verde vibrante para R3Q */
.r3q-neon {
    color: #00ff00 !important;
    font-weight: 700;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00,
        0 0 20px #00ff00,
        0 0 35px #00ff00,
        0 0 40px #00ff00;
    animation: neon-vibrate 2s ease-in-out infinite;
    display: inline-block;
    letter-spacing: 2px;
}

@keyframes neon-vibrate {
    0%, 100% {
        transform: translateX(0);
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00,
            0 0 20px #00ff00,
            0 0 35px #00ff00,
            0 0 40px #00ff00;
    }
    25% {
        transform: translateX(-2px);
        text-shadow: 
            0 0 8px #00ff00,
            0 0 12px #00ff00,
            0 0 18px #00ff00,
            0 0 25px #00ff00,
            0 0 40px #00ff00,
            0 0 50px #00ff00;
    }
    50% {
        transform: translateX(2px);
        text-shadow: 
            0 0 6px #00ff00,
            0 0 11px #00ff00,
            0 0 16px #00ff00,
            0 0 22px #00ff00,
            0 0 38px #00ff00,
            0 0 45px #00ff00;
    }
    75% {
        transform: translateX(-1px);
        text-shadow: 
            0 0 7px #00ff00,
            0 0 13px #00ff00,
            0 0 19px #00ff00,
            0 0 24px #00ff00,
            0 0 42px #00ff00,
            0 0 48px #00ff00;
    }
}

.r3q-neon:hover {
    animation: neon-vibrate 0.5s ease-in-out infinite;
    color: #00ff00 !important;
}

/* ============= SCROLL MARGIN ============= */
#nosotros,
#productos,
#mercados,
#contacto {
    scroll-margin-top: 80px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 968px) {
    .header-container-fruteec {
        padding: 0 20px;
    }

    .nav-fruteec {
        position: fixed;
        top: 80px;
        left: -100%;
    width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-white);
        transition: left 0.3s;
        padding: 30px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

    .nav-fruteec ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .hero-title-fruteec {
        font-size: 2.5rem;
    }

    .why-us-cards {
        grid-template-columns: 1fr;
    }
    
    /* Mantener tamaño homologado en móvil */
    .why-card {
        height: auto;
        min-height: 300px;
    }

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

    .btn-download-datasheet {
        font-size: 0.9rem;
        padding: 9px 16px;
    }

    .contact-team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-general-info {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo-section {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .footer-logo-fruteec {
        max-width: 234px;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .footer-links,
    .footer-contact,
    .footer-certifications {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-links h4,
    .footer-contact h4,
    .footer-certifications h4 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.3;
        text-align: center;
    }
    
    .footer-contact-item span,
    .footer-contact-item a {
        text-align: center;
    }
    
    .footer-bottom {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-bottom p {
        margin: 10px auto;
        padding: 0 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .footer-container-fruteec {
        padding: 0 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .footer-fruteec {
        padding: 60px 10px 30px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        position: relative;
    }
    
    .footer-top {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .footer-bottom {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .footer-chile-clock {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 10px 0;
    }
    
    .footer-chile-clock h5 {
        font-size: 1rem;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .clock-display {
        padding: 8px 12px;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 0.85rem;
    }
    
    .clock-display i {
        font-size: 0.9rem;
    }
    
    #chileTime {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .footer-cert-images-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-cert-images img {
        max-height: 70px;
        width: auto;
    }
}

@media (max-width: 600px) {
    .header-logo-fruteec img {
        height: 58.5px;
    }

    .hero-fruteec {
        padding: 60px 20px;
    }

    .section-title-fruteec {
        font-size: 1.8rem;
    }

    .btn-download-datasheet {
        font-size: 0.85rem;
        padding: 8px 14px;
        width: 100%;
        justify-content: center;
    }

    .btn-download-datasheet i {
        font-size: 1rem;
    }

    .why-us-fruteec,
    .productos-fruteec,
    .about-fruteec,
    .certifications-fruteec,
    .markets-fruteec,
    .contact-fruteec {
        padding: 50px 20px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    #world-map-interactive {
        padding: 10px;
        max-width: calc(100vw - 40px);
        margin: 0 auto;
    }
    
    .footer-fruteec {
        padding: 60px 10px 30px;
    }
    
    .footer-bottom {
        width: 100%;
        margin: 0 auto;
        padding: 30px 10px 0;
        text-align: center;
    }
    
    .footer-bottom p {
        margin: 10px auto;
        padding: 0;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-container-fruteec {
        padding: 0 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .footer-fruteec {
        padding: 60px 10px 30px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        position: relative;
    }
    
    .footer-top {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
        overflow-x: hidden;
    }
    
    .footer-bottom {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer-bottom p {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .footer-logo-section {
        margin-bottom: 25px;
    }
    
    .footer-logo-fruteec {
        max-width: 195px;
    }
    
    .footer-links,
    .footer-contact,
    .footer-certifications {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-links h4,
    .footer-contact h4,
    .footer-certifications h4 {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        line-height: 1.2;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-contact-item {
        flex-wrap: wrap;
        justify-content: center;
        word-wrap: break-word;
        text-align: center;
    }
    
    .footer-contact-item span,
    .footer-contact-item a {
        text-align: center;
    }
    
    .footer-chile-clock {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 10px 0;
    }
    
    .footer-chile-clock h5 {
        font-size: 0.95rem;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .clock-display {
        padding: 6px 10px;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 0.8rem;
    }
    
    .clock-display i {
        font-size: 0.85rem;
    }
    
    #chileTime {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
    
    .footer-chile-clock h5 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .clock-location {
        font-size: 0.75rem;
    }
    
    .footer-cert-images-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-cert-images img {
        max-height: 60px;
        width: auto;
        max-width: 100%;
    }
    
    .footer-certifications {
        padding: 0 10px !important;
        max-width: 100% !important;
    }
    
    .footer-cert-images-container {
        gap: 10px;
        max-width: 100%;
    }
    
    .footer-chile-clock {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .cert-carousel-btn {
        width: 40px;
        height: 40px;
  font-size: 16px;
    }

    .cert-carousel-btn.prev {
        left: -15px;
    }

    .cert-carousel-btn.next {
        right: -15px;
    }

    .cert-carousel-track {
        height: 200px;
    }

    .cert-carousel-slide img,
    .cert-carousel-img {
        max-height: 180px;
    }
}

/* ============= ADMIN EDIT MODE ============= */
#visual-edit-banner {
    position: fixed !important;
    top: 0 !important;
    z-index: 10000 !important;
}

.editable-content,
.editable-image {
    position: relative;
}

/* ============= NUEVOS ESTILOS REBRANDING ============= */

/* Markets subtitle */
.markets-subtitle {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Contact subtitle */
.contact-subtitle {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    word-spacing: normal;
    hyphens: auto;
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* Contact info items */
.contact-info-item {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.contact-timezone,
.contact-availability {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-top: 5px;
    font-style: italic;
}

.contact-phone a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-phone a:hover {
    color: var(--color-secondary);
}

/* About subtitle styling */
.about-subtitle {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-left: 4px solid var(--color-secondary);
    padding-left: 15px;
}

/* Mejoras para grid de productos con 5 items */
@media (min-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mejoras para grid de ventajas competitivas con 5 items */
@media (min-width: 1200px) {
    .why-us-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .why-us-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid responsive para 5 tarjetas homologadas */

/* ============= RELOJ DE CHILE EN FOOTER ============= */
.footer-chile-clock {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.footer-chile-clock h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.clock-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    backdrop-filter: blur(5px);
    max-width: 100%;
    box-sizing: border-box;
}

.clock-display i {
    font-size: 1rem;
    color: #FFEB3B;
    flex-shrink: 0;
}

#chileTime {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    white-space: nowrap;
}

.clock-location {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* ============= MAPA INTERACTIVO DE MERCADOS ============= */
#world-map-interactive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #2c3e50;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    box-sizing: border-box;
}

#world-map-interactive svg {
    max-width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
}

/* Fondo del océano */
.ocean-background {
    fill: #4A90E2;
}

/* Estilos para los países */
.country-map {
    fill: #a8d5ba;
    stroke: #ffffff;
    stroke-width: 0.8px;
    transition: fill 0.3s ease;
    cursor: pointer;
}

.country-map:hover {
    fill: #8bc9a3;
}

/* Chile como país de origen */
.country-origin {
    fill: #5F1A37 !important; /* Vino Cofrupa */
    stroke: #fff;
    stroke-width: 1px;
}

/* Países de destino cuando los "alcanza" el barco */
.country-destination {
    fill: #5F1A37 !important; /* Vino Cofrupa */
    stroke: #fff;
    stroke-width: 1px;
}

/* Países de destino con bandera chilena */
.country-destination-flag {
    stroke: #5F1A37 !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0 0 8px rgba(95, 26, 55, 0.6));
    animation: glowFlag 2s ease-in-out infinite;
}

@keyframes glowFlag {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(95, 26, 55, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(95, 26, 55, 0.8));
    }
}

/* Rutas del barco */
.ruta-barco {
    fill: none;
    stroke: #007bff;
    stroke-width: 2px;
    stroke-dasharray: 5 5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Barcos animados */
.barco-animado {
    fill: #5F1A37;
    stroke: #04030F;
    stroke-width: 1px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Punto de origen (Chile) */
.punto-origen {
    fill: #FFEB3B;
    stroke: #5F1A37;
    stroke-width: 2px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        r: 6;
        opacity: 1;
    }
    50% {
        r: 8;
        opacity: 0.7;
    }
}

/* Leyenda del mapa */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-dark);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-icon {
    display: inline-block;
    width: 30px;
    height: 3px;
}

.legend-icon.route-line {
    background: linear-gradient(90deg, transparent 0%, transparent 40%, #007bff 40%, #007bff 60%, transparent 60%, transparent 100%);
    background-size: 10px 3px;
    background-repeat: repeat-x;
}

.legend-icon.origin-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #5F1A37;
    border: 2px solid #FFEB3B;
}

.legend-icon.destination-point {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    background: linear-gradient(to bottom, 
        #0039A6 0%, #0039A6 16.67%, 
        white 16.67%, white 50%, 
        #5F1A37 50%, #5F1A37 100%);
    border: 1px solid #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Responsive para el mapa */
@media (max-width: 768px) {
    #world-map-interactive {
        padding: 15px;
    }
    
    .map-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .legend-item {
        width: 100%;
        justify-content: center;
    }
}

