/* =========================
   GENERAL
========================= */

html{
    scroll-behavior:smooth;
}

body{
    background:#f5ede1;
    color:#2b0a0a;
    font-family: Arial, sans-serif;
}

/* =========================
   HEADER
========================= */

.header_bo{
    background:#7a0f16;
}

.header_midil{
    background:white;
}

.header_to{
    background:#2b0a0a;
    color:white;
}

/* =========================
   LOGO
========================= */

.logo_img{
    width: 150px;
    height:auto;
    transition:0.3s;
}

.logo_img:hover{
    transform:scale(1.05);
}

/* =========================
   NAVBAR
========================= */

.navbar-dark .navbar-nav .nav-link{
    color:white;
    font-size:17px;
    margin:0 10px;
    transition:0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover{
    color:#f5ede1;
}

.navbar-dark .navbar-nav .active>.nav-link{
    color:#f5ede1;
    font-weight:bold;
}

/* =========================
   TITULOS
========================= */

.titlepage h2{
    color:#7a0f16;
    font-weight:bold;
}

.yellow{
    color:#a61b29;
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-weight:bold;
}

/* =========================
   BANNER
========================= */

.banner_main{
    background:#f5ede1;
    padding:80px 0;
}

.text-bg h1{
    color:#7a0f16;
    font-size:64px;
    line-height:72px;
}

.text-bg span{
    color:#a61b29;
    font-size:28px;
    display:block;
    margin-bottom:15px;
}

.text-bg p{
    color:#2b0a0a;
    font-size:18px;
    margin-bottom:30px;
}

/* =========================
   BOTONES
========================= */

.read_more,
.send_btn,
.read_morea,
.text-bg a{
    background:#7a0f16;
    color:white;
    border:none;
    border-radius:10px;
    padding:12px 30px;
    text-decoration:none;
    display:inline-block;
    transition:0.3s;
}

.read_more:hover,
.send_btn:hover,
.read_morea:hover,
.text-bg a:hover{
    background:#a61b29;
    color:white;
    transform:translateY(-2px);
}

/* =========================
   ABOUT
========================= */

.about{
    padding:80px 0;
    background:white;
}

.about_box p{
    color:#444;
}

.about_img img{
    border-radius:15px;
}

/* =========================
   SERVICE BOXES
========================= */

.service{
    padding:80px 0;
    background:#f5ede1;
}

.service_box{
    background:white;
    border-radius:18px;
    padding:30px;
    margin-bottom:30px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    text-align:center;
}

.service_box:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.service_box h3{
    color:#7a0f16;
    margin-top:20px;
}

.service_box p{
    color:#555;
}

/* =========================
   BUSINESS SECTION
========================= */

.business{
    background:white;
    padding:80px 0;
}

.business_box{
    background:#7a0f16;
    color:white;
    border-radius:18px;
    padding:30px;
    text-align:center;
    margin-bottom:30px;
    transition:0.3s;
}

.business_box:hover{
    background:#a61b29;
    transform:translateY(-5px);
}

.business_box h3{
    font-size:40px;
    color:#f5ede1;
}

/* =========================
   CONTACTO
========================= */

.contact{
    background:#f5ede1;
    padding:80px 0;
}

.contact_form{
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 4px 20px rgba(0,0,0,0.08);
}

.contact_control,
.textarea{
    width:100%;
    border:1px solid #ddd;
    border-radius:10px;
    padding:14px;
    margin-bottom:20px;
}

.contact_control:focus,
.textarea:focus{
    outline:none;
    border-color:#7a0f16;
}

/* =========================
   FOOTER
========================= */

.footer{
    background:#2b0a0a;
    color:white;
    padding-top:70px;
}

.footer h3{
    color:#f5ede1;
    margin-bottom:20px;
}

.footer a{
    color:white;
    transition:0.3s;
}

.footer a:hover{
    color:#f5ede1;
    text-decoration:none;
}

.location_icon li,
.link_icon li{
    margin-bottom:12px;
}

.copyright{
    background:#1a0505;
    margin-top:40px;
    padding:20px 0;
    text-align:center;
}

.copyright p{
    color:#f5ede1;
    margin:0;
}

/* =========================
   SOCIAL ICONS
========================= */

.social_icon1 li a,
.social_icon li a{
    color:white;
    transition:0.3s;
}

.social_icon1 li a:hover,
.social_icon li a:hover{
    color:#f5ede1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:768px){

    .text-bg h1{
        font-size:42px;
        line-height:50px;
    }

    .text-bg span{
        font-size:22px;
    }

    .logo_img{
        width:85px;
    }

    .service_box,
    .business_box{
        margin-bottom:20px;
    }

}@media (max-width:768px){

    .text-bg h1{
        font-size:42px;
        line-height:50px;
    }

    .text-bg span{
        font-size:22px;
    }

    .logo_img{
        width:85px;
    }

    .service_box,
    .business_box{
        margin-bottom:20px;
    }

}/* =========================
   VIDEO BANNER
========================= */

.banner_main{
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;

    background: transparent !important;
}

/* VIDEO */
.bg-video{
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    z-index: -2;
}

/* CAPA OSCURA */
.overlay{
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.45);
    z-index: -1;
}

/* TEXTO */
.text-bg h1{
    color: white;
}

.text-bg span{
    color: #f5ede1;
}

.text-bg p{
    color: white;
}

.galeria img{
    width:100%;
    border-radius:15px;
    transition:0.3s;
}

.galeria img:hover{
    transform:scale(1.03);
}

/* LOGO BARRA SUPERIOR */

.header_to .d-flex{
    height:80px;
}

.header_to span{
    color:white;
    font-weight:bold;
}
.logo_superior{
    height:70px;
    width:auto;
    margin-right:15px;
}


/* Contenedor de la imagen */
.about_img {
    margin-bottom: 20px; /* Agrega un espacio entre las dos imágenes */
}

/* Figura que envuelve la imagen */
.about_img figure {
    margin: 0;
    padding: 0;
    width: 100%;
    border-radius: 10px; /* Opcional: bordes redondeados para un toque moderno */
    overflow: hidden; /* Asegura que la imagen respete los bordes redondeados */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Opcional: una sombra sutil */
}

/* La imagen en sí */
.about_img figure img {
    width: 100%; /* Hace que la imagen ocupe todo el ancho de su columna */
    height: auto; /* Mantiene la proporción original para que no se vea estirada o achatada */
    display: block;
    object-fit: cover; /* Asegura que la imagen llene el espacio de forma uniforme */
}


/* Estilos para las tarjetas de materias */
.tarjeta-materia {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Sombra estática suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación fluida */
    border: 1px solid #eeeeee;
    height: 100%; /* Para que todas midan lo mismo */
}

/* Efecto al pasar el mouse (Hover) */
.tarjeta-materia:hover {
    transform: translateY(-10px); /* Levanta la tarjeta 10px hacia arriba */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Sombra más fuerte y amplia */
    border-color: #ffd100; /* Borde amarillo CEAT para resaltar (cámbialo si tu amarillo es otro) */
}

/* Estilo para los íconos */
.icono-materia {
    color: #444444; /* Color oscuro base */
    transition: color 0.3s ease;
}

/* El ícono cambia de color cuando haces hover en la tarjeta */
.tarjeta-materia:hover .icono-materia {
    color: #ffd100; /* El ícono se vuelve amarillo */
}

/* =========================
   TARJETAS DE PROFESORES
========================= */

.profesor-card {
    background: white;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: 0.3s;
    height: 100%; /* Mantiene todas las tarjetas alineadas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.profesor-card:hover {
    transform: translateY(-8px); /* Sigue el patrón de tus service_boxes */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.profesor-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #7a0f16; /* Detalle elegante con tu color guinda */
}

.profesor-card h3 {
    color: #7a0f16;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: bold;
}

.profesor-card .especialidad {
    color: #a61b29; /* Tu color rojo alternativo */
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.profesor-card .descripcion-corta {
    color: #555;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
}

/* Responsivo para móviles */
@media (max-width:768px){
    .profesor-card img {
        width: 130px;
        height: 130px;
    }
}