/* La landing de Escuela ACP (antes en un <style> de escuela_acp.php, sin cambios). */
/* --- VARIABLES Y RESET --- */
:root {
    --rojo-cristal: #e8368c;
    --azul-cristal: var(--color1, #0877D3);
    --oscuro: #2c3e50;
    --claro: #f8f9fa;
    --whatsapp: #25D366;
    --text-main: #444444;
    --header-height: 80px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { font-family: 'Roboto', sans-serif; margin: 0; padding: 0; color: var(--text-main); background: #fff; }
h1, h2, h3 { font-family: 'Quicksand', sans-serif; font-weight: 700; color: var(--oscuro); margin-top: 0; }
a { text-decoration: none; }

.contenedor { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.seccion { padding: 80px 0; }
.bg-claro { background-color: var(--claro); }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.section-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 50px; }

/* --- HEADER EXCLUSIVO ACP --- */
.acp-header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
    background: #ffffff; box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    z-index: 1000; display: flex; align-items: center;
}
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logos-box { display: flex; align-items: center; gap: 15px; }
.logos-box img { max-height: 50px; }
.logo-divisor { width: 2px; height: 30px; background: #eee; }

.nav-menu { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--oscuro); font-weight: bold; font-size: 15px; text-transform: uppercase; transition: 0.3s; }
.nav-menu a:hover { color: var(--rojo-cristal); }

.burger-btn { display: none; font-size: 30px; color: var(--oscuro); cursor: pointer; background: none; border: none; }

@media (max-width: 900px) {
    .nav-menu {
        position: absolute; top: var(--header-height); left: 0; width: 100%;
        background: #fff; flex-direction: column; gap: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); display: none;
    }
    .nav-menu.active { display: flex; }
    .nav-menu a { display: block; padding: 20px; border-bottom: 1px solid #eee; text-align: center; }
    .burger-btn { display: block; }
}

/* --- HERO CARRUSEL --- */
.hero-acp-wrapper { position: relative; width: 100%; height: 60vh; min-height: 400px; margin-top: var(--header-height); overflow: hidden; background: #000; }
.hero-acp-track { display: flex; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hero-acp-slide {
    flex: 0 0 100%; height: 100%; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background-size: cover; background-position: center;
}
.hero-acp-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.hero-acp-content { position: relative; z-index: 2; color: white; max-width: 800px; padding: 0 20px; }
.hero-acp-content h1 { font-size: 3.8rem; color: white; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); margin-bottom: 20px; }
.hero-acp-content p { font-size: 1.4rem; font-weight: 300; margin-bottom: 40px; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2); color: white; border: none;
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    display: flex; justify-content: center; align-items: center; z-index: 10;
    transition: 0.3s; backdrop-filter: blur(5px);
}
.hero-arrow:hover { background: var(--rojo-cristal); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.btn-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--rojo-cristal); color: white; font-size: 1.2rem; font-weight: bold;
    padding: 16px 35px; border-radius: 50px; box-shadow: 0 5px 15px rgba(204, 0, 0, 0.4);
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
.btn-cta:hover { background: var(--azul-cristal); transform: translateY(-3px); color: white; }

/* --- CURSOS (Diseño Horizontal en PC) --- */
.cursos-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* Fuerza 2 columnas iguales en PC */
    gap: 30px; 
}
.acp-card { 
    background: #fff; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    transition: 0.3s; 
    border: 1px solid #eaeaea; 
    display: flex; 
    flex-direction: row; /* Imagen a la izquierda, info a la derecha */
}
.acp-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); 
    border-color: var(--rojo-cristal); 
}
.acp-img-box { 
    position: relative; 
    width: 40%; /* La imagen ocupa el 40% de la tarjeta */
    min-height: 100%; 
    background: #000; 
    flex-shrink: 0;
}
/* Truco para que la imagen cubra toda la altura sin deformarse */
.acp-img-box img { 
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: 0.5s; 
}
.acp-card:hover .acp-img-box img { opacity: 1; transform: scale(1.05); }
.acp-badge-nuevo { 
    position: absolute; top: 15px; left: 15px; /* Lo pasé a la izq para que quede mejor */
    background: var(--rojo-cristal); color: white; padding: 6px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.3); text-transform: uppercase; 
}
.acp-info { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    width: 60%; /* La info ocupa el 60% restante */
}
.acp-course-name { font-size: 1.4rem; margin-bottom: 20px; color: var(--oscuro); }
.acp-details { list-style: none; padding: 0; margin: 0 0 20px 0; color: #555; font-size: 0.95rem; }
.acp-details li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.acp-details i { color: #888; font-size: 20px; }
.acp-badge-sede { background: #f0f4f8; color: var(--azul-cristal); padding: 10px 15px; border-radius: 8px; font-size: 0.9rem; font-weight: bold; width: max-content; display: flex; align-items: center; gap: 8px; margin-bottom: 25px; }
.acp-btn { display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 14px; background: var(--whatsapp); color: white; border-radius: 8px; font-weight: bold; font-size: 1.1rem; transition: 0.3s; margin-top: auto; }
.acp-btn:hover { background: #1ebe57; color: white; }

/* --- RESPONSIVE MOBILE (Vuelve a ser vertical) --- */
@media (max-width: 900px) {
    .cursos-grid { grid-template-columns: 1fr; /* 1 sola columna en celus */ }
    .acp-card { flex-direction: column; /* Vuelve a apilarse */ }
    .acp-img-box { width: 100%; height: 220px; min-height: auto; }
    .acp-img-box img { position: relative; } /* Reseteamos el truco de la imagen */
    .acp-info { width: 100%; box-sizing: border-box; }
    .acp-badge-nuevo { left: auto; right: 15px; } /* Lo devolvemos a la derecha */
}
		
/* --- SEDES --- */
.sedes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.sede-card { background: white; padding: 40px; border-radius: 15px; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.05); border-top: 5px solid var(--azul-cristal); }
.sede-icon { width: 80px; height: 80px; background: #f0f7ff; color: var(--azul-cristal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; margin: 0 auto 20px; }
.sede-card h3 { font-size: 1.8rem; margin-bottom: 15px; }
.sede-info { font-size: 1.1rem; color: #666; line-height: 1.8; margin-bottom: 25px; }
.sede-info i { margin-right: 8px; color: var(--rojo-cristal); }

/* --- TESTIMONIOS --- */
.testimonios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonio-card { background: white; padding: 35px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.04); position: relative; border: 1px solid #f0f0f0; }
.testimonio-card i.quote { color: #f1c40f; font-size: 2.5rem; margin-bottom: 15px; opacity: 0.5; }
.testimonio-texto { font-style: italic; font-size: 1.1rem; line-height: 1.6; margin-bottom: 25px; color: #555; }
.testimonio-autor { display: flex; align-items: center; gap: 15px; border-top: 1px solid #eee; padding-top: 20px; }
.testimonio-autor i.avatar { font-size: 40px; color: #ccc; }
.autor-info h4 { margin: 0; font-size: 1.1rem; color: var(--oscuro); }
.autor-info span { font-size: 0.85rem; color: var(--rojo-cristal); font-weight: bold; }

/* --- FOOTER --- */
.footer-acp { background: var(--oscuro); color: white; padding: 70px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1.3rem; color: white; margin-bottom: 25px; display: inline-block; }
.footer-col p { color: #bbb; line-height: 1.8; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-col p i { color: var(--rojo-cristal); width: 20px; text-align: center; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
.social-links a:hover { background: var(--rojo-cristal); transform: translateY(-3px); }
.btn-footer-wsp { display: inline-block; background: var(--whatsapp); color: white; padding: 10px 20px; border-radius: 50px; font-weight: bold; margin-top: 15px; font-size: 0.9rem; }
.btn-footer-wsp:hover { background: #1ebe57; color: white; }
