/* --- RESET BÁSICO Y ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* --- SECCIÓN HERO (APROBADA) --- */
.hero-section {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    height: 100vh; position: relative;
    background-image: url('assets/hero-background.jpg');
    background-size: cover; background-position: center; color: white;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}
.main-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 2;
    padding: 2rem 5%; display: flex; justify-content: space-between; align-items: flex-start;
}
.logo img { height: 230px; width: auto; }
.hero-slogan { position: relative; z-index: 2; padding: 1rem; text-align: center; }
.hero-slogan h1 { font-size: 2.8rem; max-width: 800px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); margin-bottom: 0.5rem; }
.hero-slogan h2 { font-size: 2rem; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); font-weight: 400; }
.main-nav { padding-top: 1.5rem; }
.main-nav ul { list-style: none; display: flex; justify-content: flex-end; gap: 2rem; }
.main-nav a { color: white; text-decoration: none; font-size: 1.1rem; font-weight: 500; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); }

/* --- SECCIONES DE CONTENIDO --- */
.content-section {
    padding: 5rem 2rem;
}
.content-section h2, .service-detail-section h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}
.content-container {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap; 
}
.image-content img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Estilos para "Sobre Nosotros" (3 columnas) */
.three-columns .text-content, .three-columns .image-content { flex: 1; min-width: 300px; }
.three-columns .image-content { display: flex; align-items: center; }
.three-columns .text-content h3 { font-size: 1.5rem; color: #0056b3; margin-bottom: 1.5rem; border-bottom: 2px solid #e9ecef; padding-bottom: 0.5rem; }
.three-columns .text-content p { font-size: 1rem; color: #555; margin-bottom: 1.2rem; }

/* Estilos para "Servicios Intro" (2 columnas) */
.two-columns .text-content { flex: 2; min-width: 300px; }
.two-columns .image-content { flex: 1; min-width: 300px; display: flex; align-items: center; }
.button {
    display: inline-block;
    color: white !important;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

/* Estilos para sección de servicios españoles */
.spanish-service-intro { background-color: #f8f9fa; }
.spanish-service-intro h4 { font-size: 1.2rem; color: #333; margin-top: 2rem; margin-bottom: 1rem; font-weight: bold; }
.spanish-service-intro ul { list-style-type: disc; list-style-position: inside; padding-left: 0; margin-top: 0.5rem; margin-bottom: 1.5rem; }
.spanish-service-intro .button { background-color: #d9534f; }
.spanish-service-intro .button:hover { background-color: #c9302c; }

/* Estilos para "Servicios Detalle" (Grid) */
.service-detail-grid { padding: 5rem 2rem; background-color: #e9ecef; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.service-card { background-color: #ffffff; border-left: 5px solid #d9534f; border-radius: 0 8px 8px 0; padding: 2rem; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.service-card h4 { font-size: 1.3rem; color: #d9534f; margin-bottom: 0.75rem; }
.detail-image-container { margin-top: 4rem; text-align: center; }
.detail-image-container img { max-width: 100%; width: 200px; border-radius: 8px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }

/* --- ESTILOS PARA SERVICIOS CHINOS (INTRO) --- */
.chinese-service-intro {
    background-color: #ffffff;
}
.two-columns.reverse {
    flex-direction: row-reverse;
}
.chinese-service-intro h2, .chinese-service-intro h4 {
    color: #0056b3;
}
.chinese-service-intro p {
    font-size: 1.1rem;
    color: #555;
}
.chinese-service-intro .button {
    background-color: #0056b3;
}
.chinese-service-intro .button:hover {
    background-color: #004494;
}

/* --- ESTILOS PARA SECCIÓN DETALLE SERVICIOS CHINOS --- */
.service-detail-list {
    background-color: #f0f5fc;
}

.service-detail-list h3 {
    color: #0056b3;
}

.service-detail-list h4 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-detail-list ol {
    list-style: none;
    counter-reset: service-counter;
    padding-left: 0;
}

.service-detail-list li {
    counter-increment: service-counter;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    padding-left: 3rem;
    position: relative;
}

.service-detail-list li::before {
    content: counter(service-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: #0056b3;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: bold;
}

/* --- ESTILOS PARA SECCIÓN DE CONTACTO --- */
.contact-section {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.contact-main-container {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
}

.contact-image-wrapper {
    flex: 1;
    min-width: 300px;
    background-size: cover;
    background-position: center;
}

.contact-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-details-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-block {
    margin-bottom: 3rem;
}

.contact-info-block img {
    max-width: 100%;
    height: auto;
}

.partners-grid-container h4 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: center;
}

.partners-grid img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partners-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-bottom {
    background-color: #343a40;
    color: #ccc;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    color: white;
    margin-bottom: 0.6rem;
}

.whatsapp-icon svg {
    width: 100%;
    height: 100%;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.whatsapp-text-es {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.whatsapp-text-cn {
    color: rgba(255,255,255,0.95);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0.2rem;
}

/* --- REGLAS DE RESPONSIVIDAD --- */
@media (max-width: 1100px) {
    .main-header { flex-direction: column; align-items: center; gap: 1rem; }
    .logo { position: static; text-align: center; }
    .logo img { height: 180px; }
    .main-nav { position: static; width: 100%; padding-top: 0.5rem; }
    .main-nav ul { justify-content: center; flex-wrap: wrap; gap: 1rem; }
    .hero-slogan h1 { font-size: 2.5rem; }
    .hero-slogan h2 { font-size: 1.8rem; }
}

@media (max-width: 992px) {
    .content-container, .service-intro-container {
       flex-direction: column;
    }
    .image-content, .service-intro-image {
        order: -1; 
        width: 100%;
        margin-bottom: 2rem;
    }
    .two-columns.reverse {
        flex-direction: column;
    }
    .contact-main-container {
        flex-direction: column;
    }
    .contact-image-wrapper {
        height: 40vh;
    }
    .contact-details-wrapper {
        padding: 3rem 2rem;
    }
    
    /* WhatsApp button en tablet */
    .whatsapp-float {
        right: 15px;
        padding: 0.8rem 1rem;
    }
    .whatsapp-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .logo img { height: 150px; }
    .hero-slogan h1 { font-size: 2rem; }
    .hero-slogan h2 { font-size: 1.5rem; }
    .content-section h2, .service-detail-grid h3 { font-size: 2rem; }
    
    /* WhatsApp button en móvil */
    .whatsapp-float {
        right: 10px;
        top: auto;
        bottom: 20px;
        transform: none;
        padding: 0.7rem 0.9rem;
        border-radius: 10px;
    }
    .whatsapp-float:hover {
        transform: scale(1.05);
    }
    .whatsapp-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.4rem;
    }
    .whatsapp-text-es {
        font-size: 0.75rem;
    }
    .whatsapp-text-cn {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* WhatsApp button más compacto en móviles pequeños */
    .whatsapp-float {
        right: 8px;
        bottom: 15px;
        padding: 0.6rem 0.8rem;
    }
    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }
}
