        /* --- VARIABLES Y RESET --- */
        :root {
            --sg-blue: #1e3453;
            --sg-gold: #d2a648;
            --sg-dark: #121e30;
            --bg-white: #ffffff;
            --bg-off-white: #f4f4f4;
            --text-main: #2e2d29;
            --text-light: #5e5e5e;
            --container-width: 1300px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Source Sans 3', sans-serif;
            color: var(--text-main);
            background-color: var(--bg-white);
            line-height: 1.6;
            font-size: 18px;
            overflow-x: hidden;
			
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Source Serif 4', serif;
            font-weight: 700;
            color: var(--sg-blue);
            line-height: 1.1;
        }

        a { text-decoration: none; color: var(--sg-blue); transition: 0.3s; }
        a:hover { color: var(--sg-gold); }
        img { display: block; width: 100%; height: auto; }
        ul { list-style: none; }

        .container {
            max-width: var(--container-width);
            margin: 0 auto;
            padding: 0 30px;
        }

        /* --- BOTONES PERSONALIZADOS --- */
        .btn {
            display: inline-block;
            padding: 12px 28px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-gold {
            background-color: var(--sg-gold);
            color: var(--sg-blue);
            border: 2px solid var(--sg-gold);
        }
        
        .btn-gold:hover { 
            background: transparent; 
            color: var(--sg-gold) !important; 
            border-color: var(--sg-gold) !important; 
        }

        .btn-blue {
            background-color: var(--sg-blue);
            color: white;
            border: 2px solid var(--sg-blue);
        }
        .btn-blue:hover { background: white; color: var(--sg-blue); }

        .section-padding { padding: 90px 0; }

        /* --- HEADER Y NAVEGACIÓN --- */
        .global-header { border-bottom: 1px solid #ddd; background: white; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
        .top-stripe { background-color: var(--sg-blue); height: 10px; width: 100%; }
        .header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
        
        .logo-area { display: flex; align-items: center; gap: 15px; }
        .logo-img { height: 70px; width: auto; object-fit: contain; }
        .logo-text { font-family: 'Source Serif 4', serif; font-size: 1.4rem; line-height: 1; color: var(--sg-blue); }
        .logo-text span { display: block; font-weight: 700; font-size: 1.8rem; letter-spacing: -0.5px; }

        /* Estilos del Menú Principal */
        .main-nav > ul { display: flex; gap: 30px; align-items: center; }
        .nav-item { position: relative; padding: 10px 0; }
        .nav-item > a { font-weight: 600; color: var(--sg-dark); font-size: 1.05rem; display: block; }
        
        /* Dropdown */
        .dropdown-menu {
            position: absolute; top: 100%; left: 0; background-color: white; min-width: 260px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15); padding: 15px 0; display: none;
            border-top: 4px solid var(--sg-gold); z-index: 9999; border-radius: 0 0 4px 4px;
        }
        .dropdown-menu.wide { min-width: 320px; }
        .nav-item:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }
        .dropdown-menu li { display: block; }
        .dropdown-menu li a { display: block; padding: 8px 25px; font-size: 0.95rem; color: var(--text-light); transition: 0.2s; border-left: 3px solid transparent; }
        .dropdown-menu li a:hover { background-color: #f9f9f9; color: var(--sg-blue); border-left: 3px solid var(--sg-gold); padding-left: 30px; }
        .menu-category-title { padding: 12px 25px 5px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--sg-blue); border-bottom: 1px solid #eee; margin-bottom: 5px; pointer-events: none;  text-align: left; }
        .menu-category-title:first-child { padding-top: 0; }

        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


        /* --- HERO (PORTADA MEJORADA) --- */
        .hero {
            position: relative;
            height: 90vh; 
            display: flex;
            align-items: flex-end; 
            padding-bottom: 40px; 
            
            /* IMAGEN DE FONDO LOCAL */
            background-image: url('../img/portada.jpg');
            
            background-size: cover;
            background-position: center;
            background-color: var(--sg-blue); /* Respaldo */
        }

        .hero::before {
            content: ''; 
            position: absolute; top:0; left:0; width:100%; height:100%;
            
            /* --- DEGRADADO SUAVE PARA MAYOR CLARIDAD --- */
            background: linear-gradient(to bottom, 
                rgba(30, 52, 83, 0) 0%,       /* Transparente total arriba */
                rgba(30, 52, 83, 0.1) 50%,    /* Muy sutil en el medio */
                rgba(30, 52, 83, 0.6) 100%    /* Sombra suave al final para el texto */
            );
            z-index: 1;
        }

        .hero-content { 
            position: relative; z-index: 2; color: white; max-width: 1000px; text-align: left; margin-bottom: 0;
        }

        .hero h1 { 
            font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: 3.8rem; 
            color: white; margin-bottom: 10px; line-height: 1.1; 
            /* Sombra reforzada para leer sobre fondo claro */
            text-shadow: 0 2px 15px rgba(0,0,0,0.7);
        }

        .hero p { 
            font-family: 'Source Serif 4', serif; font-size: 1.5rem; margin-bottom: 25px; 
            max-width: 800px; padding-left: 0; color: #f0f0f0; 
            text-shadow: 0 1px 10px rgba(0,0,0,0.8);
        }

        /* --- CARRUSEL --- */
        .academic-slider { background-color: var(--bg-white); overflow: hidden; }
        .slider-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; border-bottom: 1px solid #ddd; padding-bottom: 20px; }
        .carousel-container { position: relative; width: 100%; overflow: hidden; padding: 10px 0 20px 0; }
        .carousel-track { display: flex; transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); gap: 30px; }
        .carousel-card { min-width: calc(33.333% - 20px); background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s; border-bottom: 3px solid transparent; cursor: pointer; }
        .carousel-card:hover { transform: translateY(-5px); border-bottom: 3px solid var(--sg-gold); }
        .card-img { height: 220px; overflow: hidden; }
        .card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .carousel-card:hover .card-img img { transform: scale(1.1); }
        .card-body { padding: 25px; }
        .card-body h3 { font-size: 1.4rem; margin-bottom: 10px; }
        .card-body p { font-size: 1rem; color: #666; margin-bottom: 15px; }
        .card-tag { color: var(--sg-gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 5px; }

        /* --- VIDA ESTUDIANTIL --- */
        .split-section { display: flex; align-items: center; background-color: var(--bg-off-white); }
        .split-text { flex: 1; padding: 80px; }
        .split-img { flex: 1; height: 600px; }
        .split-img img { width: 100%; height: 100%; object-fit: cover; }
        .split-section.white-bg { background-color: white; }

        /* --- HISTORIAS --- */
        .interactive-story { position: relative; width: 100%; height: 600px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
        .story-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://sangabrielriobamba.edu.ec/wp-content/themes/sangabriel/assets/img/inspi.webp'); background-size: cover; background-position: center; transition: all 0.5s ease-in-out; z-index: 1; }
        .story-overlay-color { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30, 52, 83, 0.6); opacity: 0; transition: opacity 0.5s ease-in-out; z-index: 2; }
        .story-content { position: relative; z-index: 3; text-align: center; max-width: 800px; padding: 0 20px; opacity: 0; transform: translateY(20px); transition: all 0.5s ease-in-out; }
        .interactive-story:hover .story-bg { filter: blur(8px); transform: scale(1.05); }
        .interactive-story:hover .story-overlay-color { opacity: 1; }
        .interactive-story:hover .story-content { opacity: 1; transform: translateY(0); }
        .profile-pic { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--sg-gold); object-fit: cover; margin: 0 auto 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
        .quote-text { font-family: 'Source Serif 4', serif; font-size: 2.2rem; color: white; line-height: 1.3; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .student-name { font-family: 'Source Sans 3', sans-serif; font-weight: 700; color: var(--sg-gold); text-transform: uppercase; letter-spacing: 1px; font-size: 1.1rem; }
        .student-career { color: #e0e0e0; font-size: 0.9rem; margin-top: 5px; }
        .hover-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 4; color: white; background: var(--sg-blue); padding: 8px 16px; border-radius: 20px; font-size: 0.8rem; opacity: 0.8; pointer-events: none; transition: opacity 0.3s; }
        .interactive-story:hover .hover-hint { opacity: 0; }

        /* --- CTA & FOOTER --- */
        .cta-section { text-align: center; padding: 100px 0; background: white; }
        .cta-section h2 { font-size: 3rem; margin-bottom: 20px; }
        .cta-section p { font-size: 1.3rem; color: var(--text-light); margin-bottom: 30px; }
        
        footer { background-color: #fff; border-top: 8px solid var(--sg-blue); padding: 70px 0 30px; }
        .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
        .footer-branding .footer-logo-img { width: 140px; margin-bottom: 15px; display: block; } 
        .footer-branding p { color: #666; font-size: 0.9rem; margin-top: 10px; }
        .footer-col h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; color: var(--sg-dark); }
        .footer-col li { margin-bottom: 10px; }
        .footer-col a { color: var(--text-light); font-size: 0.95rem; }
        .footer-col a:hover { color: var(--sg-blue); }
        .sub-footer { border-top: 1px solid #eee; padding-top: 30px; display: flex; justify-content: center; font-size: 0.85rem; color: #999; }

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {
            .carousel-card { min-width: calc(50% - 15px); } 
            .hero h1 { font-size: 2.8rem; }
            .split-text { padding: 40px; }
        }

        @media (max-width: 768px) {
            .hero { align-items: flex-end; padding-bottom: 40px; }
            .hero h1 { font-size: 2.2rem; }
            .carousel-card { min-width: 100%; } 
            .split-section { flex-direction: column; }
            .split-section:nth-of-type(odd) { flex-direction: column-reverse; } 
            .split-img { height: 300px; width: 100%; }
            .interactive-story { height: auto; padding: 60px 0; background-color: var(--sg-blue); }
            .story-bg { display: none; }
            .story-overlay-color { opacity: 1; background: var(--sg-blue); }
            .story-content { opacity: 1; transform: none; }
            .hover-hint { display: none; }
            .footer-grid { grid-template-columns: 1fr; gap: 30px; }
            .main-nav { display: none; }
            .logo-text span { font-size: 1.4rem; }
            .logo-img { height: 50px; }
        }

/* nivel principal */
.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

/* items */
.main-nav li {
  position: relative;
}

/* enlaces */
.main-nav a {
  font-weight: 600;
  color: var(--sg-dark);
  font-size: 1.05rem;
  display: block;
  padding: 10px 0;
}

/* SUBMENÚ WORDPRESS */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: white;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0,0,0,.15);
  border-top: 4px solid var(--sg-gold);
  z-index: 9999;
}

/* mostrar al hover */
.main-nav li.menu-item-has-children:hover > .sub-menu {
  display: block;
}

/* items del submenú */
.main-nav .sub-menu li a {
  padding: 10px 25px;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* hover submenú */
.main-nav .sub-menu li a:hover {
  background: #f9f9f9;
  color: var(--sg-blue);
}
/* diseños del menu personalizados */

.main-nav .sub-menu li a {
  position: relative;
  padding: 12px 25px 12px 32px;
  font-size: 0.95rem;
  color: var(--text-light);
  display: block;
  transition: all 0.3s ease;
}

/* línea dorada */
.main-nav .sub-menu li a::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background-color: var(--sg-gold);
  transition: height 0.3s ease;
}

.main-nav .sub-menu li a:hover {
  background-color: #f9f9f9;
  color: var(--sg-blue);
  padding-left: 40px;
}

/* animación de la línea */
.main-nav .sub-menu li a:hover::before {
  height: 70%;
}
.main-nav .sub-menu {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* visible */
.main-nav li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
}
	/* BOTON MENU MOVIL */
.menu-toggle{
display:none;
font-size:28px;
background:none;
border:none;
cursor:pointer;
color:#1e3453;
}

/* MENU MOVIL */
@media (max-width:768px){

.menu-toggle{
display:block;
}

.main-nav{
display:none;
position:absolute;
top:100%;
left:0;
width:100%;
background:white;
box-shadow:0 10px 20px rgba(0,0,0,.1);
}

.main-nav ul{
flex-direction:column;
}

.main-nav li{
border-bottom:1px solid #eee;
}

.main-nav a{
display:block;
padding:15px;
}

.main-nav.active{
display:block;
}

}
  transform: translateY(0);
}