/* ===============================================
   FOOTER ESTRATÉGICO CON ENFOQUE DE MARKETING
   VERSIÓN CORREGIDA - RESPONSIVE OPTIMIZADO
=============================================== */

/* ===============================================
   PREVENIR OVERFLOW HORIZONTAL
=============================================== */
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.footer {
    position: relative;
    color: var(--white);
    padding: 0;
    margin-top: 15px;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    background: url(../assets/imagenes/fondo_footer.jpg) center/cover no-repeat;
    z-index: 1;
}

/* Overlay oscuro encima de la imagen de fondo */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 112, 12, 0.897);
    z-index: -1;
}

/* Asegurar que todo el contenido esté encima del overlay */
.footer * {
    position: relative;
    z-index: 2;
}

/* Llamada a la acción prominente en la parte superior */
.footer-cta-section {
    background: var(--gradient-secondary);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.footer-cta-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-cta-section .btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer-cta-section .btn-primary:hover {
    background: var(--primary-dark);
}

/* Contenido principal del footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding: 60px 20px;
    text-align: left;
}

.footer-logo img {
    width: 150px;
    margin-bottom: 20px;
}

.footer-logo p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.footer-social .social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: var(--white);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
    color: var(--primary);
}

/* Línea divisoria */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 40px 0 30px 0;
}

/* Parte inferior del footer */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    margin: 0 -20px;
    padding: 25px 20px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===============================================
   SECCIÓN DE CERTIFICADOS Y AFILIACIONES (CORREGIDA)
=============================================== */
.footer-certificates {
    background-color: #ffffff;
    padding: 25px 0;
    border-bottom: 1px solid #ebebeb;
    width: 100%;
    overflow-x: hidden;
}

.footer-certificates > div[style*="max-width: 1400px"] {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: calc(100% - 30px);
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.footer-certificates [style*="background-color: #fffdf7"] {
    padding: 20px 15px !important;
    box-sizing: border-box;
}

.certificates-flex-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px 30px;
    flex-wrap: wrap;
    width: 100%;
}

.certificates-flex-wrapper img {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certificates-flex-wrapper img:hover {
    transform: scale(1.1);
}

/* ===============================================
   SECCIÓN DE CONFIANZA Y CREDIBILIDAD
=============================================== */
.footer-trust-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.trust-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* ===============================================
   CONTENIDO PRINCIPAL REORGANIZADO
=============================================== */
.footer-main {
    padding: 30px 20px 10px 20px;
    box-sizing: border-box;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* === SECCIÓN PRINCIPAL DE MARCA === */
.footer-brand {
    animation: fadeInUp 0.6s ease forwards;
}

.brand-content {
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
    font-family: 'Poppins', serif;
}

.value-proposition {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.company-description {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Indicadores de confianza */
.trust-indicators {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.trust-badge {
    background: rgba(46, 204, 113, 0.2);
    color: var(--primary-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--primary);
}

/* === CONTACTO OPTIMIZADO PARA CONVERSIÓN === */
.footer-contact {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.footer-section h3,
.footer-contact h3,
.footer-tours h3,
.footer-payments h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-priority {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-priority li {
    margin-bottom: 15px;
    position: relative;
}

.contact-priority .primary-contact {
    background: var(--gradient-primary);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.contact-priority .primary-contact a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-priority .secondary-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-priority .secondary-contact:hover {
    background: rgba(46, 204, 113, 0.2);
    transform: translateX(5px);
}

.contact-priority .secondary-contact a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.contact-priority i {
    color: var(--accent);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* === TOURS MÁS VENDIDOS === */
.footer-tours {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.popular-tours {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-tours li {
    margin-bottom: 12px;
    position: relative;
}

.tour-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.tour-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tour-link:hover::before {
    transform: scaleY(1);
}

.tour-link:hover {
    color: var(--primary-light);
    background: rgba(46, 204, 113, 0.2);
    transform: translateX(8px);
}

.tour-icon {
    color: var(--accent);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.tour-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

/* === SECCIÓN DE PAGOS CON INCENTIVOS === */
.footer-payments {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.payment-incentives {
    background: rgba(243, 156, 18, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid var(--accent);
}

.incentive-title {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.incentive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.incentive-list li {
    padding: 5px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.incentive-list i {
    color: var(--accent);
    font-size: 0.8rem;
}

.payment-methods {
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pay-icon {
    height: 35px;
    width: auto;
    max-width: 55px;
    object-fit: contain;
    border-radius: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.pay-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    border-color: var(--primary);
}

.security-note {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: center;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ===============================================
   NEWSLETTER Y LEADS
=============================================== */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    margin: 0 -20px 30px -20px;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.newsletter-subtitle {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    min-width: 250px;
}

.newsletter-input::placeholder {
    color: var(--gray);
}

.newsletter-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.newsletter-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    animation: pulse 2s infinite;
}

.privacy-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 15px;
}

/* ===============================================
   SOCIAL PROOF Y TESTIMONIOS
=============================================== */
.footer-social-proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-proof-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.proof-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.proof-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
    display: block;
}

.proof-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===============================================
   REDES SOCIALES CON ENFOQUE DE ENGAGEMENT
=============================================== */
.footer-social {
    text-align: center;
    margin-bottom: 30px;
}

.social-title {
    font-size: 1.3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-media {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Colores específicos por red social */
.social-btn[aria-label="Facebook"]:hover {
    background: linear-gradient(45deg, #4267B2, #365899);
    border-color: #4267B2;
}

.social-btn[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #E4405F, #C13584, #833AB4);
    border-color: #E4405F;
}

.social-btn[aria-label="TikTok"]:hover {
    background: linear-gradient(45deg, #000000, #ff0050);
    border-color: #ff0050;
}

.social-btn[aria-label="WhatsApp"]:hover {
    background: linear-gradient(45deg, #25D366, #20BA5A);
    border-color: #25D366;
}

.social-cta {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===============================================
   FOOTER BOTTOM CON LINKS ESTRATÉGICOS
=============================================== */
.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-legal p {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-links a:hover {
    color: var(--primary-light);
    background: rgba(46, 204, 113, 0.2);
    transform: translateY(-1px);
}

.footer-links a:hover::after {
    width: 80%;
}

/* ===============================================
   RESPONSIVE DESIGN COMPLETO (CORREGIDO)
=============================================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        text-align: left;
    }
    
    .footer-brand {
        grid-column: span 2;
        text-align: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .trust-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-cta-title {
        font-size: 2rem;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .certificates-flex-wrapper img {
        height: 55px;
        max-width: 110px;
    }
}

/* Móvil (481px - 767px) */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-contact,
    .footer-tours,
    .footer-payments {
        text-align: center;
    }
    
    .footer-contact h3,
    .footer-tours h3,
    .footer-payments h3 {
        justify-content: center;
    }
    
    .contact-priority .secondary-contact {
        justify-content: center;
    }
    
    .contact-priority .secondary-contact a {
        justify-content: center;
    }
    
    .tour-link {
        justify-content: center;
    }
    
    .payment-icons {
        justify-content: center;
    }
    
    .trust-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .trust-item {
        text-align: center;
    }
    
    .footer-cta-title {
        font-size: 1.8rem;
    }
    
    .footer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-footer-primary,
    .btn-footer-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-input {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .newsletter-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
    
    .certificates-flex-wrapper {
        gap: 15px 20px;
    }
    
    .certificates-flex-wrapper img {
        height: 45px !important;
        max-width: 100px;
    }
    
    .footer-certificates [style*="background-color: #fffdf7"] {
        padding: 15px 10px !important;
    }
}

/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
    .footer-cta-section {
        padding: 30px 15px;
    }
    
    .footer-cta-title {
        font-size: 1.5rem;
    }
    
    .footer-cta-subtitle {
        font-size: 1rem;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .footer-main {
        padding: 40px 15px 20px;
    }
    
    .social-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .payment-icons {
        gap: 10px;
    }
    
    .pay-icon {
        height: 30px;
        max-width: 45px;
    }
    
    .certificates-flex-wrapper {
        gap: 12px;
    }
    
    .certificates-flex-wrapper img {
        height: 40px !important;
        max-width: 80px;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .value-proposition {
        font-size: 1rem;
    }
    
    .footer-bottom {
        margin: 0 -15px;
        padding: 20px 15px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .footer-bottom-content {
        text-align: center;
    }
}

/* ===============================================
   ANIMACIONES DE MARKETING
=============================================== */

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* Estados de focus para accesibilidad */
.btn-footer-primary:focus,
.btn-footer-secondary:focus,
.newsletter-input:focus,
.newsletter-btn:focus,
.social-btn:focus,
.footer-links a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}