:root {
  --crema: #FEF9E1;
  --beige: #E5D0AC;
  --rojo-oscuro: #6D2323;
  --rojo-claro: #A31D1D;
}
html {
  cursor: url(assets/aero_arrow_xl.cur);
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--crema);
  color: var(--beige);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  position: relative;
  background-color: #6D2323;
  color: var(--beige);                              
}
header h1 {
  color: white;
}

.logo {
  height: 80px;
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.nav-container ul {
  display: flex;
  gap: 30px;
  margin-left: 20px;
}

.nav-container li {
  margin: 0;
  position: relative;
}

.nav-container a {
  padding: 10px 0;
  font-weight: 500;
}

.nav-container a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 1px;
  left: 0;
  background: var(--beige);
  transition: width 0.3s;
}

.nav-container a:hover::after {
  width: 100%;
}
.nav-container {
  display: flex;
  justify-content: center;
}

.nav-container ul {
  list-style: none;
  padding: 0;
}

.nav-container li {
  margin: 0 15px;
}

.nav-container a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-container a:hover {
  color: var(--beige);
}

.hero {
  background-image: url('assets/img/hero.jpg');
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  background:rgba(70, 9, 9, 0.7);
  padding: 20px;
  border-radius: 10px;
  color: var(--crema);
  text-align: left;
  margin-right: 50%;
  text-align: justify;
}
.hero-content h1 {
  margin: 0;
  font-size: 4em;
  color: var(--beige) ;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
.hero-content p {
  font-size: 1.2em;
  color: white;
}
.hero-content b {
  color: var(--beige);
}
.hero-intranet  {
  margin-top: 40%;
  text-align: center; 
  background:rgba(70, 9, 9, 0.7);
  padding: 20px;
  border-radius: 10px;
  color: var(--crema);
  text-decoration: none;
  font-size: 1.2em;
  width: 100em;
}
.hero-intranet a {
  color: var(--beige);
  text-decoration: none;
}
main {
  padding: 20px;
}

section {
  margin: 20px 0;
  padding: 20px;
  background: var(--beige);
  border-radius: 5px;
  animation: fadeIn 0.5s ease-in-out;
}
#oferta {
  padding: 40px 20px;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  display: flex;
  text-align: justify;
}

.oferta-title {
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

.oferta-title h1 {
  font-size: 2.5rem;
  color: var(--rojo-oscuro);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.oferta-title h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50%;
  height: 3px;
  background: var(--rojo-claro);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.oferta-title h1:hover::after {
  width: 100%;
}

/* Estilos para el contenedor de las tarjetas */
.oferta-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  text-align: justify;
}
.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-card .meta {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card .photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.blog-card:hover .photo {
  transform: scale(1.1);
}

.blog-card .description {
  padding: 20px;
  background: white;
  position: relative;
  z-index: 1;
}

.blog-card .description h1 {
  font-size: 1.8rem;
  color: var(--rojo-oscuro);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.blog-card:hover .description h1 {
  color: var(--rojo-claro);
}

.blog-card .description h2 {
  font-size: 1.2rem;
  color: var(--rojo-claro);
  margin-bottom: 15px;
  font-weight: 400;
}

.blog-card .description p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card .read-more {
  text-align: right;
}

.blog-card .read-more a {
  color: var(--rojo-oscuro);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.blog-card .read-more a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rojo-claro);
  transition: width 0.3s ease;
}

.blog-card .read-more a:hover {
  color: var(--rojo-claro);
}

.blog-card .read-more a:hover::after {
  width: 100%;
}

/* Efecto de brillo al pasar el mouse */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover::before {
  opacity: 1;
}

/* Animación de borde */
.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 15px;
  z-index: 2;
  transition: border-color 0.3s ease;
}

.blog-card:hover::after {
  border-color: var(--rojo-claro);
}

/* Media queries para diseño responsive */
@media (min-width: 768px) {
  .blog-card {
      flex-direction: row;
      max-width: 800px;
  }

  .blog-card .meta {
      flex: 1;
      height: auto;
  }

  .blog-card .description {
      flex: 1;
  }

  .blog-card.alt {
      flex-direction: row-reverse;
  }
}
  @media (min-width: 640px) {
    .blog-card {
      flex-direction: row;
      max-width: 700px;
    }
    .meta {
      flex-basis: 40%;
      height: auto;
    }
    .description {
      flex-basis: 60%;
      &:before {
        transform: skewX(-3deg);
        content: "";
        background: #fff;
        width: 30px;
        position: absolute;
        left: -10px;
        top: 0;
        bottom: 0;
        z-index: -1;
      }
    }
    &.alt {
      flex-direction: row-reverse;
      .description {
        &:before {
          left: inherit;
          right: -10px;
          transform: skew(3deg)
        }
      }
      .details {
        padding-left: 25px;
      }
    }
  }


h1, h2 {
  color: var(--rojo-oscuro);
}
#equipo {
  background-color: var(--crema);
}
/* Estilos para el equipo docente */
.equipo-title {
  text-align: center;
  margin: 10px 0;
}

.equipo-title h1 {
  font-size: 2.5rem;
  color: var(--rojo-oscuro);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.equipo-title h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50%;
  height: 3px;
  background: var(--rojo-claro);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.equipo-title h1:hover::after {
  width: 100%;
}

.profesores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px;
}

.profesor-card {
  background: rgb(255, 255, 255);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.profesor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.profesor-header {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.profesor-avatar {
  height: 100%;
  background-size:contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.5s ease;
  transform: scale(0.8);
}

.profesor-card:hover .profesor-avatar {
  transform: scale(1.05);
}

.especialidad-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  z-index: 2;
}

.profesor-info {
  padding: 20px;
  text-align: center;
}

.profesor-info h3 {
  color: var(--rojo-oscuro);
  margin-bottom: 10px;
}

.profesor-info p {
  text-align: justify;
}

.especialidad {
  color: var(--rojo-claro);
  font-weight: 600;
  margin-bottom: 15px;
}

.bio {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  min-height: 80px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tech-item {
  background: rgba(109, 35, 35, 0.1);
  color: var(--rojo-oscuro);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.profesor-card:hover .tech-item {
  background: var(--rojo-claro);
  color: white;
}

/* Efecto de brillo al pasar el mouse */
.profesor-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profesor-card:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .profesores-grid {
      grid-template-columns: 1fr;
  }
}
footer {
  text-align: center;
  padding: 10px 0;
  background: var(--rojo-oscuro);
  color: #fff;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 0;
}
#intranet {
  height: 100vh;
  background: url('assets/img/fondo-espartano.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(90px);
}

/* Contenedor del formulario */
.intranet-container {
  background: rgba(60, 10, 10, 0.9);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  max-width: 400px;
  width: 100%;
  color: #fff;
  animation: fadeIn 1s ease-in-out;
}
.intranet-container h2 {
  color: var(--crema);
  margin-bottom: 20px;
}
/* Animación de entrada */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Estilo de los inputs */
input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #a52a2a;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  transition: all 0.3s ease-in-out;
}

input:focus {
  border-color: gold;
  transform: scale(1.05);
  outline: none;
}

/* Estilo del botón */
button {
  width: 100%;
  padding: 12px;
  background: gold;
  color: #a52a2a;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background: #ffcc00;
  transform: scale(1.1);
}

.contacto-container {
  background: var(--crema);
  padding: 40px;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.contacto-container h2 {
  color: var(--rojo-oscuro);
  font-size: 2rem;
  margin-bottom: 20px;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contacto-detalles p {
  font-size: 1.1rem;
  color: var(--rojo-claro);
  transition: transform 0.3s ease-in-out;
}

.contacto-detalles a {
  color: var(--rojo-oscuro);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.contacto-detalles a:hover {
  color: var(--beige);
}

.contacto-mapa {
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin: 10px 0 5px;
}

form input {
  padding: 10px;
  border: 1px solid var(--rojo-oscuro);
  border-radius: 5px;
}

form button {
  margin-top: 10px;
  padding: 10px;
  background: var(--rojo-oscuro);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: var(--rojo-claro);
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* INTRANET */
.intranet-main {
  padding: 2rem;
  min-height: 100vh;
}
.intranet-main h3 {
  color: var(--rojo-oscuro);
  margin-bottom: 2rem;
}

.dashboard-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.admin-card {
  background: var(--crema);
  padding: 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--rojo-oscuro);
}

.admin-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(109, 35, 35, 0.2);
}

.grade-table {
  overflow-x: auto;
}

table {
  width: 90%;
  border-collapse: collapse;
  margin: 1rem 0;
  color: var(--rojo-oscuro);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--beige);
}

th {
  background-color: var(--rojo-oscuro);
  color: white;
}

.grades-chart {
  display: grid;
  gap: 1.5rem;
}

.subject-grade {
  background: var(--crema);
  padding: 1rem;
  border-radius: 10px;
}

.grade-bar {
  background: var(--rojo-claro);
  padding: 0.5rem;
  color: white;
  border-radius: 5px;
  margin-top: 0.5rem;
  transition: width 1s ease;
}

.logout-btn {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: var(--rojo-claro);
  transform: scale(1.05);
}

.animate-slide {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
      opacity: 0;
      transform: translateX(-50px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.spartan-helmet {
  font-size: 1.2em;
  margin-right: 10px;
}

.spartan-red {
  color: var(--rojo-claro);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.contacto-container {
  min-height: 100vh;
  padding: 4rem 8%;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-in-out;
  margin-bottom: 0;
}

.contacto-container h2 {
  font-size: 2.8rem;
  color: var(--rojo-oscuro);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 2.5rem;
  position: relative;
  text-align: center;
  letter-spacing: 2px;
}

.contacto-container h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: #c41919;
  border-radius: 2px;
}

.contacto-info {
  display: flex;
  flex-direction: row;
}

.contacto-detalles {
  flex:1;
  padding: 2.5rem;
  background: var(--rojo-claro);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
  max-width: 30%;
}

.contacto-detalles:hover {
  transform: translateY(-5px);
}

.contacto-detalles p {
  text-align: left;
  font-size: 2rem;
  color: #fff;
  margin: 1.5rem 0;
  padding-left: 35px;
  position: relative;
}

.contacto-detalles p strong {
  color: var(--beige);
  font-weight: 600;
}
.contacto-container a {
  color: white;
}
.contacto-detalles p:before {
  content: '';
  text-align: left;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--crema);
}
/* Ícono para el 1er párrafo (por ejemplo, dirección) */
.contacto-detalles p:nth-child(1):before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="%23FFFDD0" d="M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 256c-35.3 0-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64s-28.7 64-64 64z"/></svg>');
}

/* Ícono para el 2º párrafo (por ejemplo, teléfono) */
.contacto-detalles p:nth-child(2):before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23FFFDD0" d="M280 0C408.1 0 512 103.9 512 232c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-101.6-82.4-184-184-184c-13.3 0-24-10.7-24-24s10.7-24 24-24zm8 192a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm-32-72c0-13.3 10.7-24 24-24c75.1 0 136 60.9 136 136c0 13.3-10.7 24-24 24s-24-10.7-24-24c0-48.6-39.4-88-88-88c-13.3 0-24-10.7-24-24zM117.5 1.4c19.4-5.3 39.7 4.6 47.4 23.2l40 96c6.8 16.3 2.1 35.2-11.6 46.3L144 207.3c33.3 70.4 90.3 127.4 160.7 160.7L345 318.7c11.2-13.7 30-18.4 46.3-11.6l96 40c18.6 7.7 28.5 28 23.2 47.4l-24 88C481.8 499.9 466 512 448 512C200.6 512 0 311.4 0 64C0 46 12.1 30.2 29.5 25.4l88-24z"/></svg>');
}

/* Ícono para el 3er párrafo (por ejemplo, correo) */
.contacto-detalles p:nth-child(3):before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23FFFDD0" d="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"/></svg>');
}


.contacto-mapa {
  flex: 2;
  margin-left: 20%;
  width: 100%;
  height: 800px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.contacto-mapa:hover {
  transform: scale(1.02);
}

.contacto-mapa iframe {
  display: flex;
  height: 100%;
  border: none;
}
