*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:system-ui,'Segoe UI','Open Sans','Helvetica Neue',sans-serif;
scroll-behavior:smooth;
}

body{
background:#f5f5f5;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 20px;
background:rgb(114,37,39);
position:sticky;
top:0;
z-index:1000;
height:90px;
}

.header-left{
display:flex;
align-items:center;
gap:15px;
}

.logo{
width:120px;
}

.logo-lerdo{
width:70px;
}

header h3{
color:white;
font-size:1.2rem;
}

/* MENU */

.header-menu{
background:#bc8e2e;
position:sticky;
top:90px;
height:50px;
display:flex;
align-items:center;
padding:10px 20px;
z-index:999;
}

nav{
display:flex;
gap:30px;
margin-left:auto;
}

nav a{
text-decoration:none;
font-weight:bold;
color:black;
padding:6px 8px;
border-radius:6px;
transition:.2s;
}

nav a:hover{
background:rgba(0,0,0,0.08);
}

/* Hover / focus styles to show selection (desktop & mobile) */
        nav a:hover, nav a:focus {
            background-color: rgba(0,0,0,0.06);
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            outline: none;
        }

        /* Specific header-menu link color */
        .header-menu nav a {
            color: black;
        }

        /* Hamburger hover effect */
        .hamburger:hover {
            background-color: rgba(0,0,0,0.06);
            border-radius: 6px;
        }

        .header-menu nav {
            margin-left: auto;
        }

/* HAMBURGUESA */

.hamburger{
display:none;
font-size:30px;
cursor:pointer;
margin-left:auto;
}

/* Header con menú */
        .header-menu {
            background-color: #bc8e2e;
            position: sticky;
            top: 90px; 
            z-index: 999;
            height: 50px;
            display: flex;
            align-items: center;
            padding: 10px 20px;
        }

        .header-menu nav a {
            color: black;
            position: relative;
        }

        /* HERO */
        .hero {
            text-align: center;
            padding: 100px 20px;
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img_inicio/banner.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            min-height: 300px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .hero h1 {
            font-size: clamp(2rem, 4vw, 3rem);
            margin: 0;
            font-weight: 700;
            text-shadow: 0 2px 8px rgba(0,0,0,0.25);
        }

        /* SECCIÓN */
        .section {
            padding: 60px 20px;
            text-align: left;
            max-width: 900px;
            margin: 0 auto;
        }

        .section h2 {
            font-size: 1.7rem;
            margin-bottom: 30px;
            color:rgb(114,37,39);
            text-align: center;

        }

        .section h3 {
            font-size: 1.4rem;
            margin-top: 40px;
            margin-bottom: 15px;
            color:rgb(114,37,39);
        }

        .section p {
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
            color: #333;
            text-align: justify;
        }

@media(max-width:768px){

nav{
display:none;
flex-direction:column;
background:#bc8e2e;
position:absolute;
right:20px;
top:80px;
padding:20px;
box-shadow:0 10px 20px rgba(0,0,0,.2);
}

nav.active{
display:flex;
}

.hamburger{
display:block;
}

}

/* HERO */

.hero{
text-align:center;
padding:100px 20px;
background-image:linear-gradient(rgba(0,0,0,.4),rgba(0,0,0,.4)),url('../img_inicio/banner.jpg');
background-size:cover;
background-position:center;
color:white;
min-height:300px;
display:flex;
flex-direction:column;
justify-content:center;
scroll-margin-top: 150px;
}

.hero h1{
font-size:clamp(2rem,4vw,3rem);
}

.hero p{
margin-top:15px;
}

/* SECTIONS */

.section{
padding:60px 20px;
max-width:900px;
margin:auto;
}

.section h2{
color:rgb(114,37,39);
margin-bottom:25px;
scroll-margin-top: 150px;
}

.section h3{
color:rgb(114,37,39);
margin-top:40px;
margin-bottom:10px;
}

.section p{
line-height:1.8;
margin-bottom:20px;
text-align:justify;
}

 /* ANIMACIONES AL SCROLL */
        .animate {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

        .animate.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* SEMESTER GRID */
        .semesters {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
        }

        .semester-card {
            background: #ffffff;
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 10px 15px 15px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: transform 0.22s ease, box-shadow 0.22s ease;
            cursor: pointer;
        }

        .semester-card:hover,
        .semester-card.active {
            transform: scale(1.03);
            box-shadow: 0 8px 20px rgba(0,0,0,0.14);
            z-index: 10;
        }

        .semester-card h3 {
            margin: 6px 0 10px;
            font-size: 1.1rem;
            color: rgb(114,37,39);
            text-align: center;
            width: 100%;
        }

        .semester-card ul {
            list-style: disc inside;
            width: 100%;
            padding-left: 0;
        }

        .semester-card li {
            margin-bottom: 6px;
            font-size: 0.95rem;
            padding: 6px 8px;
            border-radius: 6px;
            transition: background-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
        }
        .semester-card ul li a {
            color: inherit;
            text-decoration: none;
            width: 100%;
        }
        .semester-card ul li {
    cursor: pointer;
}
        .semester-card ul li:hover,
        .semester-card ul li:focus {
            background: rgba(0,0,0,0.06);
            box-shadow: 0 4x 10px rgba(0,0,0,0.08);
            transform: translateX(4px);
            outline: none;
        }

 /* FOOTER */
    .footer{
    background:rgb(114,37,39);;
    color:white;
    padding:40px 20px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    max-width:1200px;
    margin:auto;
}

.footer-section{
    width:300px;
    margin-bottom:20px;
}

.footer-section h3{
    margin-bottom:10px;
}

.footer-section p{
    line-height:1.6;
}

.social-icons{
    display:flex;
    gap:15px;
    margin-top:10px;
}

.social-icons img{
    width:35px;
    transition:0.3s;
}

.social-icons img:hover{
    transform:scale(1.2);
}

.footer-bottom{
    background:rgb(90, 25, 27)

;
    text-align:center;
    padding:10px;
    margin-top:20px;
}

/* CARRUSEL */

.carousel-container{
    width:60%;
    max-width:600px;
    margin:50px auto;
    position:relative;
    overflow:hidden;
    border-radius:10px;
    background:#fff;
}

.carousel{
    display:flex;
    transition:transform 0.6s ease;
}

.slide{
    min-width:100%;
}

.slide img{
    width:100%;
    height:400px;
    object-fit:contain;
    background:#fff;
}

/* botones */

.prev, .next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:white;
    border:none;
    padding:10px 15px;
    cursor:pointer;
    font-size:20px;
}

.prev{
    left:10px;
}

.next{
    right:10px;
}

/* indicadores */

.indicators{
    text-align:center;
    position:absolute;
    bottom:10px;
    width:100%;
}

.dot{
    height:12px;
    width:12px;
    margin:5px;
    background:#bbb;
    border-radius:50%;
    display:inline-block;
    cursor:pointer;
}

.dot.active{
    background:#fff;
}

/* responsive */

@media(max-width:768px){

.slide img{
height:250px;
}

}
/* =========================
   BOTON CHAT FLOTANTE
========================= */

#chatbot-button{
position:fixed;
bottom:25px;
right:25px;

display:flex;
align-items:center;
gap:10px;

cursor:pointer;
z-index:999;

font-family:Arial;
}

/* circulo rojo */

.chat-circle{
width:60px;
height:60px;

background:#bc8e2e;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

box-shadow:0 5px 15px rgba(0,0,0,0.3);

transition:all 0.2s ease;
}

/* icono del bot */

.chat-icon{
width:45px;
height:45px;
object-fit:contain;
}

/* texto dudas */

.chat-text{
font-size:16px;
font-weight:bold;
color:black;
}

/* animacion */

.chat-circle:hover{
transform:scale(1.05);
box-shadow:0 8px 20px rgba(0,0,0,0.35);
}


/* =========================
   VENTANA DEL CHAT
========================= */

#chatbot-window{
position:fixed;
bottom:100px;
right:25px;

width:300px;

background:white;

border-radius:10px;

box-shadow:0 5px 20px rgba(0,0,0,0.3);

display:none;

font-family:Arial;

z-index:999;
}


/* header */

.chat-header{
background:#8B2C2C;
color:white;
padding:10px;

border-radius:10px 10px 0 0;

display:flex;
justify-content:space-between;
align-items:center;
}


/* cuerpo */

.chat-body{
padding:10px;
font-size:14px;

display:flex;
flex-direction:column;

height:260px;       
overflow-y:auto;    

gap:8px;
}

/* botones preguntas */

.chat-options button{
display:block;
width:100%;
margin:5px 0;
padding:8px;

border:none;

background:#c9a33b;

cursor:pointer;

border-radius:5px;
}

.chat-options button:hover{
background:#b38d2f;
}


/* boton cerrar */

#chat-close{
cursor:pointer;
}


/* =========================
   MENSAJE DEL BOT
========================= */

.bot-message{
display:flex;
align-items:flex-start;
gap:8px;
margin-bottom:10px;
width:100%;
}
.bot-message p{
margin:0;
}
.bot-avatar{
width:35px;
height:35px;
border-radius:50%;
object-fit:cover;
}

.chat-options{
display:flex;
flex-direction:column;
margin-top:10px;
width:100%;
}

.chat-btn{
opacity:0;
transform:translateY(10px);
transition:all 0.4s ease;
}

.chat-btn.show{
opacity:1;
transform:translateY(0);
}


/* contenedor de mensajes */

.chat-message{
max-width:75%;
padding:10px 14px;
border-radius:12px;
font-size:14px;
line-height:1.4;
word-wrap:break-word;

margin:6px 0;   /* separación vertical */
}

/* mensaje del usuario */

.user-message{
background:#8B2C2C;
color:white;

align-self:flex-end;
margin-left:auto;   /* empuja a la derecha */

border-bottom-right-radius:4px;
}

/* mensaje del bot */

.bot-message-bubble{
background:#c9a33b;
color:black;

align-self:flex-start;
margin-right:auto;  /* asegura que quede a la izquierda */

border-bottom-left-radius:4px;
white-space: pre-wrap; /* permite saltos de línea */
}
/* fila del chat */

.chat-row{
display:flex;
align-items:flex-end;
gap:8px;
margin:6px 0;
width:100%;
}

/* bot */

.bot-row{
justify-content:flex-start;
}

.user-avatar{
width:35px;
height:35px;
border-radius:50%;
object-fit:cover;
}

.user-row{
display:flex;
align-items:flex-end;
gap:8px;

justify-content:flex-end; /* mueve todo a la derecha */
}
.mensaje-ayuda{
margin:0;
}

/* ===== Estilos generales ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}

/* ===== Contenedor de cards ===== */
.contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px;
}

/* ===== Estilo de cada card ===== */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 16px;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}


.card p {
  margin: 6px 0;
  font-size: 14px;
}

/* ===== Horarios por día ===== */
.dias {
    margin-top: 10px;
    white-space: nowrap; /* deja que el navegador maneje los espacios */
}

.dias strong {
    display: inline-block;
    margin-right: 15px; /* agrega espacio claro entre el texto y la hora */
    color: #2980b9;
}

/* ===== Responsive ===== */
@media screen and (max-width: 600px) {
  .card {
    padding: 12px;
  }

  .card p {
    font-size: 13px;
  }

  .dias strong {
    width: 80px;
  }
}

.btn-box {
  display: inline-block; /* Se ajusta al texto */
  background-color: #550505; /* Azul */
  color: #faf9f9;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 12px; /* Esquinas redondeadas */
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Sombra */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-box:hover {
  background-color: #0056b3; /* Azul más oscuro */
  transform: scale(1.05);
}