/*
 * Estilos para el Footer OPPO
 * Diseño responsivo basado en la página oficial
 */

/* Variables específicas del footer */
:root {
    --footer-bg: #000000;
    --footer-text: #fffffff2;
    --footer-text-muted: #ffffff8c;
    --footer-border: #333333;
    --footer-hover: #f0f0f0;
    --oppo-green: #1BAA18;
    --transition: 0.3s ease;
}

/* Footer Principal */
.oppo-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1312px;
    margin: 0 auto;
}

@media(min-width: 1024px)and (max-width:1439.98px) {
    .oppo-footer {
        padding:0 64px
    }
}

@media(min-width: 650px)and (max-width:1023.98px) {
    .oppo-footer {
        padding:0 24px
    }
}

@media screen and (max-width: 767.98px) {
    .oppo-footer {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    #footer-placeholder {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}


/* Para pantallas grandes que coincidan con el original */
@media (min-width: 1613px) {
    .footer-container {
        margin: 0 150.5px;
        padding: 0;
    }
}

#footer-placeholder{
    background-color: #000000;
}

/* Footer Main - Enlaces de navegación */
.footer-main {
    padding: 48px 0 0;
}

.footer-main .footer-container {
    border-bottom: 1px solid var(--footer-border);

}

/* Breadcrumb dentro del main */
.breadcrumb {
    font-size: 16px;
    font-family: OPPOSans-Ver2-Regular, Helvetica, Arial, sans-serif;
    color: var(--footer-text-muted);
    height: 64px;
}

.breadcrumb-brand {
    color: var(--footer-text-muted);
    font-size: 16px;
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--footer-text-muted);
    font-size: 15px;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    font-weight: 600;
}

.breadcrumb-arrow{
    width: 10px;
    height: 10px;
    object-fit: contain;
    display: inline-block;
}

.breadcrumb-arrow img{
    width: 10px;
    height: 10px;
    object-fit: contain;
    opacity: 0.6;
}

.footer-nav {
    width: 100%;
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    min-height: 518px;
}

.footer-section {
    width: 217px;
    padding: 0 20px 40px 0;
    height: 100%;
}

.footer-title {
    font-size: 16px;
    font-family: OPPOSans-Ver2-Regular, Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: var(--footer-text);
    margin: 0 0 12px 0;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 14px;
    font-family: OPPOSans-Ver2-Regular, Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    display: block;
    padding: 0px 0px 6px;
    transition: color var(--transition);
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Sección de Contacto */
.footer-contact {
    padding-top: 24px;
    border-top: 1px solid var(--footer-border);
}

.footer-contact .footer-container-contact {
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: 24px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-section {
    position: relative;
}

.support-dropdown {
    position: relative;
}

.support-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
    transition: all var(--transition);
}

.support-trigger:hover {
    opacity: 0.8;
}

.robot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #ffffff65;
}

.robot-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.support-text {
    font-size: 16px;
    font-family: OPPOSans-Ver2-Regular, Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: var(--footer-text);
    margin-right: 10px;
}

.arrow-down {
    transition: transform var(--transition);
    color: var(--footer-text-muted);
}

.support-trigger:hover .arrow-down {
    transform: rotate(180deg);
}

/* Desplegable de Contacto */
.contact-options {
    width: 328px;
    height: 488px;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: white;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 16px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    margin-bottom: 8px;
}

.support-dropdown.open .contact-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.contact-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}


/* Contact Header - Título al lado del icono */
.contact-header {
    display: flex;
    align-items: center;
    padding: 16px 56px;
    margin-top: 3px;
    position: relative;
}

.contact-item.service-center:hover{
    background-color: #00000010;
}

.contact-header.phone-header{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    left: 16px;
    position: absolute;
    top: 16px;
    z-index: 1;
}

.contact-icon img{
    display: block;
    height: 24px;
    width: 24px;
}

.contact-title {
    font-size: 16px;
    font-weight: 500;
    color: #000000f2;
}

.contact-phone {
    font-weight: 600;
    color: #000000f2;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-subtitle {
    font-size: 14px;
    color: #0000008c;
    padding: 0 16px 8px 56px;
    margin-top: 8px;
}

.contact-arrow{
    opacity: 0.6;
    object-fit: contain;
    width: 10px;
    height: 10px;
    position: absolute;
    right: 16px;
    top: 21px;
}


/* Redes Sociales y Region */
.social-region-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.social-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text-muted);
    text-decoration: none;
}

.region-link {
    font-size: 14px;
    font-family: OPPOSans-Ver2-Regular, Helvetica, Arial, sans-serif;
    color: var(--footer-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* Footer Bottom */
.footer-bottom {
    padding: 32px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 20px;
}

.legal-section {
    flex: 1;
}

.legal-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.legal-links li {
    margin: 0;
}

.legal-link {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 12px;
    padding-right: 24px;
}

.copyright {
    font-size: 12px;
    color: var(--footer-text-muted);
    margin: 0;
}

/* Botón Volver Arriba */
.back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--footer-text-muted);
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-underline-offset: 2px;
}

@media(max-width: 1023.98px) {
    .footer-bottom .back-to-top {
        display:none
    }
}

.back-arrow {
    width: 12px;
    height: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        max-width: 1024px;
        margin: 0 auto;
        padding: 0 16px;
    }
    
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 12px;
        height: 44px;
    }

    .breadcrumb span{
        font-size: 12px;
    }
    
    .footer-container {
        max-width: 768px;
        margin: 0 auto;
        padding: 0 12px;
    }
    
    .footer-main {
        padding: 20px 0 0;
    }
    
    .footer-main .footer-container {
        padding-bottom: 20px;
    }
    
    nav.footer-nav {
        min-height: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .footer-section {
        width: 100%;
        padding: 0;
        /* Remover border-bottom */
    }
    
    .footer-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0;
        padding: 16px 0;
        cursor: pointer;
        user-select: none;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Iconos +/- para el acordeón */
    .footer-title::after {
        content: '+';
        font-size: 20px;
        font-weight: 300;
        color: var(--footer-text-muted);
        transition: all var(--transition);
        /* Hacer el ícono más visible */
        margin-left: 8px;
    }
    
    .footer-section.expanded .footer-title::after {
        content: '−';
        font-weight: 300;
    }

    
    /* Enlaces ocultos por defecto en móvil */
    .footer-section .footer-links {
        display: none;
        margin: 0;
        padding: 0 0 16px 0;
        /* Animación suave para el acordeón */
        transition: all 0.3s ease;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }

    .footer-section.expanded .footer-links {
        display: block;
        opacity: 1;
        max-height: 500px; /* Altura máxima para la animación */
    }
    
    .footer-link {
        font-size: 14px;
        padding: 6px 0;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .footer-contact {
        padding: 20px 0 0;
    }
    
    .footer-contact .footer-container {
        padding-bottom: 20px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 15px;
        
    }
    
    .social-region-section {
        justify-content: space-between;
        width: 100%;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .legal-links {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .contact-options {
        min-width: 220px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        max-width: 100%;
        margin: 0;
        padding: 0 12px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .oppo-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    #footer-placeholder {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    nav.footer-nav {
        min-height: 100%;
        height: 100%;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .support-info {
        padding: 10px 12px;
    }
    
    .support-text {
        font-size: 13px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
}

/* Reglas específicas para pantallas muy pequeñas */
@media (max-width: 375px) {
    .footer-container {
        max-width: 100%;
        margin: 0;
        padding: 0 8px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .oppo-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0 8px;
    }
    
    #footer-placeholder {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .footer-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Estados especiales - SOLO para móvil */
.footer-section .expand-btn {
    display: none;
}

/* Reglas obsoletas removidas - ahora manejadas en el media query principal */

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

.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }
