/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Para que al hacer clic en el menú baje suavemente */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* --- NAVEGACIÓN (Header Transparente Profesional) --- */
header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    position: absolute; /* Flota sobre la imagen Hero */
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: none; /* Quitamos la línea para que no corte la foto */
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Contenedor del Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 70px; /* Tamaño optimizado para el escudo */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.logo-texto-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-nombre {
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff; /* Blanco para resaltar sobre la fachada */
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.logo-subnombre {
    font-weight: 400;
    font-size: 0.85rem;
    color: #e0e0e0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Menú de Navegación */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

nav ul li a:hover {
    color: #D4AF37; /* Color dorado al pasar el mouse */
}

/* --- SECCIÓN HERO (Fachada Principal) --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('FondoCetpro.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh; /* Ocupa toda la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    max-width: 700px;
}

/* --- BOTÓN WHATSAPP --- */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- SECCIÓN PROGRAMAS (Grid Profesional) --- */
.seccion-programas {
    padding: 100px 20px;
    background-color: #f9f9f9;
    scroll-margin-top: 80px; /* Evita que el header tape el título al bajar */
}

.seccion-programas h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #222;
}

.grid-programas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    border-top: 5px solid #2a316b; /* Detalle institucional color */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-top-color: #5014af;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #111;
}

.card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- SECCIÓN CONTACTO Y UBICACIÓN --- */
#contacto {
    background-color: #222;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.botones {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contacto {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-contacto.tel { background-color: #444; }
.btn-contacto.fb { background-color: #1877F2; }

.btn-contacto:hover { opacity: 0.8; transform: scale(1.02); }

/* Ubicación al final */
.seccion-ubicacion {
    padding: 80px 20px;
    background-color: #000; /* Fondo negro como pediste */
    color: white;
    text-align: center;
}

.contenedor-centrado {
    max-width: 800px;
    margin: 0 auto;
}

.marco-mapa {
    margin-top: 35px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #333;
}

.copyright {
    margin-top: 40px;
    font-size: 0.85rem;
    color: #777;
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    header { background: rgba(0,0,0,0.9); position: relative; } /* En móvil mejor fondo sólido */
    .hero { height: 70vh; padding-top: 20px; }
    .hero h1 { font-size: 2.2rem; }
    nav { flex-direction: column; gap: 20px; }
    nav ul { gap: 10px; }
    nav ul li { margin: 0 10px; }
    .grid-programas { grid-template-columns: 1fr; }
}