

/* Reset y estilos base */
:root {
    --primary: #002147;
    --secondary: #DFA924;
    --accent: #00468B;
    --light: #f8f9fa;
    --dark: #333;
    --text: #444;
    --text-light: #777;
}

/* Mejoras en la tipografía */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}
/* Contraste WCAG */
body {
  color: #333;
  background: #002147;
}

.nav-link {
  color: #002147;
  background: #fff;
}

/* Responsividad móvil */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  table {
    font-size: 0.85rem;
  }
}

/* Barra de login */
.login-bar {
    background: #002147;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: flex-end;
	border-bottom-left-radius: 0.625rem;
  	border-bottom-right-radius: 0.625rem;
}

.login-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    position: relative;
}

.login-form input {
    padding: 0.6rem 1rem;
    border: 2px solid #BF8F00;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 180px;
    transition: all 0.3s ease;
}

.login-btn {
    background: #BF8F00;
    color: #fff;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forgot-password {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.acceso-tit {
  border-top-left-radius: 0.625rem;
  border-top-right-radius: 0.625rem;
  background-color: #DFA924;
  height: auto;
  max-height: 85px;
  padding: 15px 0.625rem 15px 15px;
  font-size: 120%;
  text-shadow: 0.125rem 0.125rem 0.125rem rgba(0, 0, 0, 0.3);
  color: white;
}

/* Header principal */
.main-header {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 1rem; /* Reduje el padding vertical de 0.6rem a 0.3rem */
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: auto; /* Elimina cualquier altura mínima si existe */
	max-height: 50px;
}

.header-mainlogos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 2rem;
    background: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background: #BF8F00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary);
}


/* Tarjetas modernas */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 70, 139, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Efectos hover modernos */
.link-hover {
    position: relative;
    display: inline-block;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
}

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

.animate-fadein {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Mejoras en la accesibilidad */
:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: var(--primary);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}




.logo-container {
    display: flex;
    align-items: center;
    gap: 2rem;
	justify-content: flex-start;
}

.unam-logo {
    height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.suayed-logo {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

/* Menú principal */
.main-nav {
    flex-grow: 1;
    margin: 0 4rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.nav-link {
    color: #002147;
    text-decoration: none;
    font-weight: 10;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Menú hamburguesa */
.hamburger-btn {
    display: none; /* Oculto por defecto */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 5;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 15px;
    transition: all 0.3s ease;
}

.hamburger-btn.open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Efectos hover */
.nav-link:hover {
    background: #00468b10;
    color: #bf8f00;
}

.login-btn:hover {
    background: #997700;
    transform: translateY(-1px);
}

.forgot-password:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-form {
        gap: 0.8rem;
    }
    
    .login-form input {
        width: 160px;
    }
}

@media (max-width: 860px) {
	 .hamburger-btn {
        display: block;
    }
    .header-main {
        padding: 1rem;
    }
    
    .main-nav {
        position: fixed;
        top: 130px;
        right: -100%;
        width: 70%;
        max-width: 240px;
        height: 60vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 4;
        overflow-y: auto;
        padding-top: 10px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-link {
        padding: 0.5rem;
        display: block;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    
    .unam-logo, .suayed-logo {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .login-bar {
        padding: 0.4rem 1rem;
        justify-content: center;
    }
    
    .login-form {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .login-form input {
        width: 100%;
    }
    
    .login-btn {
        width: 100%;
        padding: 0.8rem;
    }
    
    .forgot-password {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 1rem;
    }
    
    .unam-logo, .suayed-logo {
        height: 0%;
    }
    
    .header-main {
        padding: 0.8rem;
		position: fixed;
		display: block;
		justify-content: space-between;
		align-items: center;
		padding: 0.1rem 0.1rem;
		background: #002147;
    }
	
	.logo-container {
		align-items: center;
		gap: 2rem;
		justify-content: flex-start;
}

	
}
/* Hero Styles */
.hero {
    position: relative;
    height: 400px; /* Altura reducida (ajusta según necesites) */
    background-image: linear-gradient(rgba(0, 70, 139, 0), rgba(0, 70, 139, 0)),
                      url("../img/backgrounds/back_enfermera.png");
    background-size: cover;
    background-position: center center; /* Centra la imagen */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0 auto;
    max-width: 96%; /* Mismo ancho que tu carrusel */
    width: 100%;
    /* border-radius: 8px; Opcional: para coincidir con el carrusel */
    margin-bottom: 1rem; /* Espacio entre hero y carrusel */
}

#hero .hero-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
	width: 100%;
    color: #919191;
    padding: 2rem;
    background: rgba(0, 12, 51, 0);
    border-radius: 15px;
    /* backdrop-filter: blur(4px); */
	margin-left: auto; /* Mueve el contenido a la derecha */
    margin-right: 5%; /* Espaciado desde el borde derecho */
    text-align: right; /* Alinea el texto a la derecha */	
   /* color: #fff;*/
}

.hero-title {
    font-size: 6.8rem;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-title2 {
    font-size: 1.8rem;
    font-weight: 700;
  	color: #DFA924;
  text-align: right;
  font-family: 'Open Sans', sans-serif;
  text-shadow: 4px 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    /* max-width: 600px;*/ 
	color: #fff;
}

.hero-cta {
    display: inline-block;
    background-color: #BF8F00;
    color: #000F4D;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: ;
    letter-spacing: 1px;
}

.hero-cta:hover {
    background-color: #997700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
        padding: 5rem 1rem;
    }
    
    .hero-content {
        margin: 0 auto; /* Centrar en móviles */
        text-align: right; /* Alinear texto a la izquierda en móvil */
        width: 100%; /* Ancho completo en móviles */
		height: 120%; /* Alto completo en móviles */
		padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.5rem;
		margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-cta {
        width: 100%;
        text-align: center;
    }
	.acceso-tit {
		font-size: 1rem;
		padding: 5px 0.325rem 5px 5px;
	}
	
	.hero-grid {
    display: block;
}
	
}

/* Si quieres animación al cargar */
	@keyframes slideInFromRight {
		0% {
			transform: translateX(20%);
			opacity: 0;
		}
		100% {
			transform: translateX(0);
			opacity: 1;
		}
	}

	.hero-content {
		animation: slideInFromRight 0.8s ease-out; /* Opcional */
	}

/* Estilos Servicios Escolares */
.servicios-section {
    /* background-color: #000B5C;*/
	background-image: linear-gradient(rgba(208, 208, 208, 0.8), 
                      rgba(0, 70, 139, 0.3)),
                      url("../img/backgrounds/eneo-back08.png");
    padding: 2rem 1rem;
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
  color: #666;
  font-size: 1.35rem;
  line-height: 0.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}


.section-title {
    color: #000B5C;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #BF8F00;
    margin: 0.5rem auto;
}

.servicios-grid {
    display: grid;
    gap: 1rem;
}

.servicio-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 70, 139, 0.1);
    border-color: #BF8F00;
}

.servicio-icon {
     margin-right: 10px;
     color: #9d9d9d;
}

.servicio-card:hover .servicio-icon {
    color: #BF8F00;
}

.servicio-card h3 {
    color: #002D5A;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.servicio-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}
/* Modificaciones CSS */


.servicio-toggle {
    width: 100%;
    padding: 1rem;
    text-align: left;
    background: #f8f9fa;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.servicio-toggle:hover {
    background: #e9ecef;
}

.servicio-toggle h3 {
    margin: 0;
    flex-grow: 1;
}


.servicio-card.active .dropdown-content {
    max-height: 2000px; /* Ajusta según necesites */
    padding: 1rem;
    border-top: 1px solid #eee;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.white-back {
  background: url("../img/backgrounds/eneo-back11.png") no-repeat fixed center;
  padding: 2rem 1rem;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
}

.white-back00 {
  background: url("../img/backgrounds/eneo-back08.png") no-repeat fixed center;
  padding: 2rem 1rem;
  /*-webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;*/
}

.row {
  display: -ms-flexbox;
  display: block;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.servicio-card.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content ul {
    list-style: none;
    padding: 1rem 0;
}

.dropdown-content li {
    margin-bottom: 0.5rem;
}

.dropdown-content a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-content a:hover {
    color: #BF8F00;
}

/* Modificaciones responsive */
@media (max-width: 768px) {
    .servicio-toggle {
        padding: 1.5rem;
    }
    
    .dropdown-content {
        padding: 0 1.5rem;
    }
    
    .servicio-card.active .dropdown-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .servicios-grid {
        gap: 1.5rem;
    }
    
    .servicio-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .servicios-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* .servicios-grid {
        grid-template-columns: 1fr;
    }
    */
    .servicio-card {
        padding: 1.5rem 1rem;
    }
	
}
/* Estilos Blog */
.blog-section {
    padding: 4rem 2rem;
    background: #fff;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,70,139,0.1);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: #002D5A;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    min-height: 60px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.author {
    color: #000F4D;
}

.likes {
    color: #BF8F00;
}

/* Estilos Footer */
.main-footer {
    background: #002147;
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    position: relative;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* Escudo UNAM ajustado */
.footer-logo {
    width: 60px; /* Reducido de 80px a 60px */
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: brightness(0) invert(1); /* Para hacerlo blanco */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}


/* Estructura compacta */
.footer-content {
    display: block;
    flex-direction: column;
    gap: 2rem;
}


.footer-title {
    color: #DFA924;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: none; /* Texto normal */
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section {
    margin-bottom: 0.5rem;
}

.footer-section h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: none; /* Texto normal */
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23DFA924" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23DFA924" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23DFA924"/></svg>') no-repeat;
    background-size: cover;
    transform: rotate(180deg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-dir h5 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.footer-col {
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
    color: #DFA924;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #DFA924;
}

/* Estilos mejorados para h5 */
.footer-col h5 {
    color: #DFA924; /* Color dorado para mejor contraste */
    font-size: 1.1rem; /* Tamaño aumentado */
    font-weight: 600; /* Grosor mejorado */
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
    letter-spacing: 0.5px; /* Mejor espaciado */
    text-transform: uppercase; /* Opcional: mayúsculas para énfasis */
}

.footer-col h5::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #DFA924;
    transform: translateX(-50%); /* Centrar la línea decorativa */
}


/* Corrección para h6 */
.footer-col h6 {
    color: rgba(255, 255, 255, 0.9); /* Color más claro */
    font-size: 0.85rem; /* Tamaño aumentado de 0.6rem */
    font-weight: 400; /* Peso normal en lugar de bold */
    margin-bottom: 1rem;
    line-height: 1.5; /* Mejor interlineado */
    letter-spacing: 0.5px; /* Pequeño espaciado entre letras */
}


/* Contenido centrado */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar horizontalmente */
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem; /* Espacio entre elementos */
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.footer-links a:hover {
    color: #DFA924;
}



/* Estilos para información de contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 0.5rem;
    font-size: 0.75rem;
}

.contact-icon {
    color: #DFA924;
    font-size: 1rem;
}


/* Redes sociales centradas */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0.1rem 0;
}

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #DFA924;
    transform: translateY(-2px);
}


/* Newsletter centrado */
.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background: #DFA924;
    color: #002147;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-form button:hover {
    background: #BF8F00;
    transform: translateY(-2px);
}

/* Footer inferior */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.1rem 0 0;
	font-size: 0.9rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #DFA924;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.1rem;
}


/* Responsive */
@media (max-width: 768px) {
    .footer-logo {
        width: 50px; /* Aún más pequeño en móviles */
    }
    
    .footer-col h6 {
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}


@media (max-width: 480px) {
    .blog-section {
        padding: 3rem 1rem;
    }
    
    .main-footer {
        padding: 1rem 1rem;
    }
    
    .blog-content h3 {
        min-height: auto;
    }
}

	/* Dropdown Desktop */
	.dropdown {
		position: relative;
	}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
	display: block;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    color: #002147 !important;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0, 70, 139, 0.2);
    color: #bf8f00 !important;
}

.nav-link i {
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

/* Mobile Dropdown */
@media (max-width: 860px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
	.dropdown.active .dropdown-menu {
        display: block;
    }
	
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
		opacity: 1;
    	visibility: visible;
    	transform: translateY(5px);
    }
    
    .dropdown-menu a {
        padding-left: 2rem;
		padding: 0.75rem 0.5rem;
    }
    
    .nav-link i {
        float: right;
        transform: rotate(0deg);
    }
    
    .dropdown.active .nav-link i {
        transform: rotate(180deg);
    }
}

/* Estilos del Modal */
.modal-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 1rem;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 60%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #00468B;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #BF8F00;
}

.modal-content h2 {
    color: #00468B;
    margin-bottom: 1rem;
    border-bottom: 2px solid #BF8F00;
    padding-bottom: 1rem;
}

.contactos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contacto-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #00468B;
}

.contacto-item h3 {
    color: #002D5A;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contacto-item h3 i {
    color: #BF8F00;
}

.contacto-item p {
    font-weight: 600;
    color: #00468B;
    margin-bottom: 0.5rem;
}

.contacto-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacto-item li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contacto-item i[class^="fas"] {
    width: 20px;
    color: #666;
}

.contacto-item strong {
    color: #BF8F00;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .contactos-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos específicos para el modal de asesores */
.asesores-container {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.asesores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.asesor-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #BF8F00;
    transition: all 0.2s ease;
}

.asesor-item:hover {
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.asesor-nombre {
    color: #00468B;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.asesor-email {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asesor-email:hover {
    color: #BF8F00;
}

@media (max-width: 768px) {
    .asesores-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos Accordion */
.accordion-container {
    margin-top: 1.5rem;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.accordion-btn {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #00468B;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-btn:hover {
    background: #f8f9fa;
}

.accordion-btn i {
    font-size: 0.9rem;
    color: #BF8F00;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.2rem;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 1.2rem 1.2rem;
}

.accordion-item.active .accordion-btn i {
    transform: rotate(180deg);
}

.accordion-content p {
    color: #666;
    line-height: 1.6;
    margin: 0.8rem 0;
}

.accordion-content ul {
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .accordion-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }
}
.super-text {
  font-size: 300% !important;
  font-weight: 900;
  color: #BA8424;
  font-family: 'Source Sans Pro', sans-serif;
}

.subsuper-text {
  font-size: 150% !important;
  font-weight: 700;
  color: #BA8424;
  font-family: 'Source Sans Pro', sans-serif;
  text-align: left;
}

/*.subsuper-text::before {
    content:  close-quote;
    display: block;
    width: 380px;
    height: 2px;
    background: #BF8F00;
    margin: 0.2rem auto;
}*/

.presentacion {
    display: inline-block;
    background-image: url(../img/icons/present.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin: 0;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-col {
    padding: 0rem;
	border: 0.125rem solid #997700;
  	border-radius: 0.625rem;
}

.left {

    text-align: right;
}

.hero-call {
    color: #BF8F00;
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.right {
    text-align: left;
}

/* Ajustes Responsive */
@media (max-width: 1200px) {
    .hero-call {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
		margin-top: -45px;
    }
    
    .left {
        border-right: none;
        border-bottom: 3px solid #BF8F00;
        text-align: center;
        padding-bottom: 3rem;
    }
    
    .hero-cta {
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-call {
        font-size: 2rem;
    }
}
/* Estilos Carrusel */
.avisos-carrusel {
    /*background: #002147;*/
    padding: 0.2rem 0;
    margin-top: -1px;
	
}

.carrusel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carrusel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrusel-slide {
    min-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
}

.aviso-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	/*background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 47, 121, 0.4)), url("../img/backgrounds/eneo-back15.png");*/
}

.aviso-content h3 {
    color: #00468B;
    margin-bottom: 1rem;
}

.aviso-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.aviso-cta {
    background: #BF8F00;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aviso-cta:hover {
    background: #997700;
}

/* Controles */
.carrusel-prev,
.carrusel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(191, 143, 0, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.carrusel-prev:hover,
.carrusel-next:hover {
    background: #BF8F00;
}

.carrusel-prev {
    left: 1rem;
}

.carrusel-next {
    right: 1rem;
}

/* Indicadores */
.carrusel-indicadores {
    position: absolute;
    bottom: 0rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carrusel-indicadores span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrusel-indicadores span.active {
    background: #BF8F00;
}

/* Responsive */
@media (max-width: 768px) {
    .aviso-content {
        padding: 1.5rem;
    }
    
    .carrusel-prev,
    .carrusel-next {
        padding: 0.8rem;
        font-size: 1.2rem;
    }
    
    .aviso-cta {
        padding: 0.6rem 1.2rem;
    }
}
/* Menú accesibilidad*/

.menuAccesibilidad {
    height: 30px;
    background-color: #DFA924;
    padding: 0 3%;
}


.imgContNormal {
    display: block;
    width: 25px;
    padding: 2px;
}

.imgContAltoC {
    display: none;
    width: 25px;
    padding: 2px;
}

.accesibilidad-bar {
    background-color: #002147;
    padding: 0.1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end; /* Cambio clave */
}

.accesibilidad-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    /* Eliminamos el max-width y margin-auto */
}

/* Mantenemos el resto de estilos igual */
.acc-btn {
    background: none;
    border: none;
    color: #002d62;
    cursor: pointer;
    /*padding: 0.5rem 1rem;*/
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}


.acc-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.acc-btn i {
    font-size: 1.2rem;
}

.acc-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Contraste alto */
.alto-contraste {
    background-color: #000 !important;
    color: #fff !important;
	filter: grayscale(100%);
}

.alto-contraste a {
    color: #000 !important;
}

.alto-contraste button {
    color: #fff !important;
    border-color: #fff !important;
}


@media (max-width: 768px) {
    .accesibilidad-bar {
        justify-content: center;
        padding: 0.1rem;
    }
    
    .accesibilidad-container {
        gap: 1rem;
    }
    
    .acc-text {
        display: none; /* Ocultar texto en móviles */
    }
    
    .acc-btn {
        padding: 0.5rem;
    }
}

.foot-tit {
    color: #CD8711;
    font-size: .9rem;
}
/* Estilos específicos para el modal de login */
/*.login-form {
    max-width: 400px;
    margin: 0.5rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}*/

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00468B;
    font-weight: 600;
}

/*.login-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #DFA924;
    border-radius: 4px;
    font-size: 1rem;
}*/

.login-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(223, 169, 36, 0.3);
}

/*.login-btn {
    width: 100%;
    background-color: #00468B;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}*/

.login-btn:hover {
    background-color: #002D5A;
}

.login-help {
    text-align: center;
    margin-top: 1rem;
}

.login-help a {
    color:  #00468B;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .login-form {
        padding: 0 1rem;
    }
    
    .login-form input {
        padding: 0.6rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
}



/* Contenedor de la tabla */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    background: #fff;
    border-radius: 8px;
}

/* Estilos base de la tabla */
.creditos-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    min-width: 600px;
}

.creditos-table th,
.creditos-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* Cabeceras */
.creditos-table thead th {
    background-color: #00468B;
    color: white;
    font-weight: 600;
    border-bottom: 2px solid #002D5A;
}

.creditos-table thead th:nth-child(1) {
    background-color: #f8f9fa;
    color: #00468B;
    border-right: 2px solid #002D5A;
}

/* Subcabeceras */
.creditos-table thead th.subheader {
    background-color: #e8f1f8;
    color: #002D5A;
    font-weight: 600;
}

/* Celdas de datos */
.creditos-table tbody td {
    color: #444;
}

.creditos-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Resaltado porcentajes */
.percentage-cell {
    font-weight: 700;
    color: #00468B;
}

/* Bordes personalizados */
.creditos-table th.border-right {
    border-right: 2px solid #002D5A;
}

.creditos-table td.border-right {
    border-right: 2px solid #e0e0e0;
}

/* Hover effect */
.creditos-table tbody tr:hover {
    background-color: #f0f4f8;
}

/* Responsive */
@media (max-width: 768px) {
    .table-container {
        margin: 1rem 0;
        border-radius: 4px;
    }
    
    .creditos-table th,
    .creditos-table td {
        padding: 8px 10px;
        font-size: 0.85em;
    }
}

/* Título de tabla */
.table-caption {
    caption-side: top;
    font-size: 1.2em;
    font-weight: 600;
    color: #00468B;
    padding: 1rem;
    text-align: left;
    background-color: #f8f9fa;
    border-bottom: 2px solid #BF8F00;
}

/* Estilos adicionales */
.table-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    background: #00468B;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.modal-btn:hover {
    background: #002D5A;
    transform: translateY(-2px);
}

/* Estilos específicos para tablas en modales */
.creditos-table .semestre-header td {
    background-color: #e8f1f8;
    font-weight: 600;
    color: #00468B;
}

.creditos-table .total-row td {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #002D5A;
}

.creditos-table td[colspan] {
    text-align: center;
}

/* Responsive para tablas complejas */
@media (max-width: 768px) {
    .creditos-table {
        font-size: 0.8em;
    }
    
    .modal-btn {
        width: 100%;
        text-align: center;
    }
	
}

/* En tu archivo CSS */
table {
    min-width: 600px; /* Ancho mínimo para mantener estructura */
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 768px) {
    table {
        font-size: 14px; /* Texto más pequeño en móviles */
    }
}


p {
  font-size: 1.1rem;
  line-height: 1.6;
  /*max-width: 65ch;  Legibilidad óptima */
}

/* Contenedor para móviles */
.header-mobile-container {
    display: block; /* Oculto por defecto en desktop */
    position: sticky;
    top: 80px; /* Debajo del main-header */
    left: 0;
    width: 100%;
    background: #002147;
    padding: 0.1rem 1rem;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(223, 169, 36, 0.3);
    align-items: center;
    justify-content: space-between;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .header-mobile-container {
        top: 60px; /* Si el main-header es más pequeño en móviles */
        padding: 0.3rem 0.8rem;
    }
    
    .main-nav {
        top: 110px;
    }
	.mobile-logo img {
        height: 35px;
    }
}

/* Estilos para móvil */
@media (max-width: 860px) {
    .header-mobile-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.1rem 1rem;
        background: #002147;
        border-bottom: 1px solid #ddd;
        width: 100%;
		position: fixed;
		top: 170px;
		z-index: 3;
    }
	
    .accesibilidad-bar {
        justify-content: center;
        padding: 0.5rem 1rem;
      background: transparent;
    }
    
    .accesibilidad-container {
        flex-direction: row;
        gap: 10px;
    }

	.acc-btn i {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
	.acc-text {
        display: block;
        font-size: 0.7rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .acc-btn {
        margin: 0;
        padding: 8px;
    }
    
    .hamburger-btn {
        position: static;
        margin: 0;
		padding: 8px;
    }
    
    /* Ajustar el main-nav para que no interfiera */
    .main-nav {
        top: 190px; /* Ajusta según la altura de tu barra */
    }
    
    /* Ocultar la barra de accesibilidad original */
    .accesibilidad-bar:not(.header-mobile-container .accesibilidad-bar) {
        display: none;
    }
}
