:root {
  --primary-color: #da0505;
  --secondary-color: #9d2b2b;
  --background-color: #f7f7f7;
  --text-color: #212529;
  --whatsapp-green: #25d366;
  --transition: all 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-decoration: none;
  list-style: none;
}
html {
  scroll-padding: 80px;
  scroll-behavior: smooth;
}
body {
  background-color: var(--background-color);
  color: var(--text-color);
}
a {
  color: var(--text-color);
  user-select: none;
}
.logo-upc {
  width: 40px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.btn:hover {
  color: var(--background-color);
  background-color: var(--secondary-color);
}
.btn-hero-primary {
  background-color: var(--primary-color);
}
.btn-hero-secondary {
  color: var(--text-color);
  border: 1px solid var(--text-color);
}

header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  padding: 15px 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: padding, background-color;
}

.navbar {
  display: flex;
  align-items: center;
}

.menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu-list li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: var(--transition);
}

.menu-list li a:hover {
  color: var(--primary-color);
}

/* Dropdown Escritorio */
.nav-item-with-submenu {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  list-style: none;
  display: none;
  flex-direction: column;
}

.dropdown-menu li {
  padding: 0 !important;
  text-align: left !important;
}

.dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  font-size: 0.9rem;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.btn-menu {
  display: none;
  width: 28px;
  cursor: pointer;
}
@media screen and (min-width: 791px) {
  .nav-item-with-submenu:hover .dropdown-menu {
    display: flex;
  }
}
@media screen and (max-width: 790px) {
  .nav-item-with-submenu.is-open .dropdown-menu {
    display: flex;
  }
  .arrow.up::after {
    content: " ▲";
    font-size: 0.7rem;
  }
  .arrow.down::after {
    content: " ▼";
    font-size: 0.7rem;
  }
}

header.header-shrunk {
  padding: 5px 50px; /* Más pequeño */
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 790px) {
  header {
    padding: 15px 25px;
  }

  .btn-menu {
    display: block;
    z-index: 1001;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    padding: 80px 0 20px 0;
    gap: 0;
    overflow-y: auto;
  }

  .menu-list.is-active {
    display: flex;
  }

  .menu-list > li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .menu-list > li > a,
  .submenu-label a {
    display: block;
    padding: 15px;
    font-size: 1.1rem;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background-color: #f9f9f9;
    width: 100%;
    padding: 0;
    border-top: 1px solid #eee;
  }

  .dropdown-menu li a {
    padding: 12px 20px;
    color: #666;
  }

  .submenu-label {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
}
/*Hero*/
.hero {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 100vh;
  background-color: var(--background-color);
  padding: 40px 5%;
  gap: 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #333;
}

.hero-text p {
  font-size: 1.2rem;
  color: #666;
}

.btn-content-hero {
  display: flex;
  gap: 15px;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}
.hero-text h1 span {
  color: var(--primary-color);
  display: block;
  margin-top: 10px;
}
@media screen and (max-width: 968px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    height: auto;
    padding-top: 100px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .btn-content-hero {
    justify-content: center;
    width: 100%;
  }

  .hero img {
    max-width: 350px;
  }
}

@media screen and (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .btn-content-hero {
    flex-direction: column;
    width: 100%;
  }

  .btn-content-hero a {
    width: 100%;
    text-align: center;
  }

  .hero img {
    max-width: 280px;
  }
}
/*Agreement*/
.agreement {
  padding: 80px 5%;
  background-color: #ffffff;
  text-align: center;
}

.agreement-header {
  margin-bottom: 50px;
}

.agreement-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.agreement-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color, #a32434);
}

.agreement-header p {
  color: #666;
  max-width: 600px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

.grid-agreement {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-card {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-card img {
  width: 100%;
  max-width: 160px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.logo-card:hover {
  transform: translateY(-5px);
}

.logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive */
@media screen and (max-width: 790px) {
  .agreement {
    padding: 50px 20px;
  }

  .agreement-header h2 {
    font-size: 2rem;
  }

  .grid-agreement {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .logo-card img {
    filter: grayscale(0%);
    opacity: 1;
    max-width: 130px;
  }
}

@media screen and (max-width: 480px) {
  .grid-agreement {
    grid-template-columns: 1fr;
  }
}
/*Quality Policy*/
.quality-policy {
  width: 100%;
  padding-bottom: 80px;
  background-color: #fff;
}

.policy-banner {
  background-color: var(--primary-color, #a32434);
  color: white;
  padding: 80px 5%;
  text-align: center;
  margin-bottom: 60px;
}

.policy-text {
  max-width: 900px;
  margin: 0 auto;
}

.policy-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.policy-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.quality-objectives {
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.quality-objectives h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.grid-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.card h3 {
  color: var(--primary-color, #a32434);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

@media screen and (max-width: 790px) {
  .policy-banner {
    padding: 60px 20px;
  }

  .policy-text h2 {
    font-size: 2rem;
  }

  .grid-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 25px;
  }
}
/*Careers*/
.careers {
  padding: 80px 5%;
  background-color: #f4f7f6;
}

.careers-text {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.careers-text h1 {
  font-size: 3rem;
  color: #222;
  margin-bottom: 20px;
}

.careers-text p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--primary-color, #a32434);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 12px;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}

.description {
  font-size: 0.95rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-bottom: 25px;
}

.stats-container p {
  font-size: 0.85rem;
  color: #555;
}

.stats-container strong {
  display: block;
  color: #333;
  font-size: 0.9rem;
}

.btn-more {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: var(--primary-color, #a32434);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.btn-more:hover {
  background-color: #851d2a;
}

@media screen and (max-width: 480px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }

  .careers-text h1 {
    font-size: 2.2rem;
  }
}
.main-footer {
  background-color: #ffffff;
  padding: 60px 5% 20px;
  border-top: 1px solid #eee;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.footer-column h3 {
  color: var(--primary-color, #a32434);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #444;
}

.footer-links a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color, #a32434);
}

.footer-info-item strong {
  color: #333;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
  color: #999;
  font-size: 0.85rem;
}

/* Responsive */
@media screen and (max-width: 968px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/*Contact*/
.contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: auto;
  height: auto;
  pointer-events: none;
}

.contact-info,
.whatsapp-Icon {
  pointer-events: auto;
}

.whatsapp-Icon {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-Icon:hover {
  transform: translateY(-5px);
}

.contact img {
  width: 50px;
  height: 50px;
  display: block;
  animation: Shake 3s ease-in-out infinite;
}

.contact p {
  margin: 0;
  font-size: 0.9rem;
  color: #fff;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 100px;
  background-color: var(--whatsapp-green, #25d366);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-info {
  width: 160px;
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid #eee;
}

.contact-info.is-active {
  display: flex !important;
}

.contact-info a {
  padding: 12px;
  text-decoration: none;
  color: #333;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.3s;
  border-bottom: 1px solid #f5f5f5;
}

.contact-info a:hover {
  background: var(--primary-color);
  color: #fff;
}

@keyframes Shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-5deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: rotate(5deg);
  }
}
/*Career Detail*/
.career-page {
  animation: fadeIn 0.5s ease-in;
}

.career-hero {
  height: 40vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.career-hero.it {
  background-image: url("./../assets/img/it-header.jpg");
  background-color: #2c3e50;
}

.career-hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
}

.career-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.career-container {
  max-width: 1000px;
  margin: -50px auto 80px;
  background: white;
  position: relative;
  z-index: 10;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.career-section h2,
.curriculum-section h2 {
  color: var(--primary-color, #a32434);
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color, #a32434);
  padding-left: 15px;
}

.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 40px 0;
}

.career-info-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
}

.career-info-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.career-info-card ul {
  list-style: none;
  padding: 0;
}

.career-info-card li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.career-info-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color, #a32434);
}

.btn-download {
  display: inline-block;
  background: var(--primary-color, #a32434);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.career-hero.admin {
  background-image: url("");
  background-color: #7f8c8d;
}
.career-hero.metalurgica {
  background-image: url("");
  background-color: #7f8c8d;
}
.career-hero.extraescolares-bg {
  background-image: url("");
  background-color: #34495e;
}

.extra-list-items {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.extra-list-items li {
  background: #f4f7f6;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color, #a32434);
  font-weight: 600;
  border: 1px solid #eee;
}

/* La nota de aviso estandarizada */
.extra-notice-box {
  margin-top: 50px;
  padding: 25px;
  background-color: #fdf2f2; /* Color suave basado en el primario */
  border-radius: 10px;
  border-left: 5px solid var(--primary-color, #a32434);
  text-align: center;
  color: #333;
}

.extra-notice-box strong {
  color: var(--primary-color, #a32434);
}
/* Icono específico para Word */
.docx-icon {
  color: #2b579a; /* Azul característico de Word */
  font-size: 3rem;
  margin-bottom: 10px;
}

.format-card {
  border-bottom: 4px solid #2b579a !important; /* Resaltado azul */
  padding: 25px !important;
}

.btn-download-file {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #2b579a;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-download-file:hover {
  background-color: #1e3e6d;
}

/* Ajuste para que las cards no se vean tan vacías */
.format-card h3 {
  font-size: 1.1rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .career-container {
    margin: 20px;
    padding: 25px;
  }
  .career-grid {
    grid-template-columns: 1fr;
  }
  .career-hero h1 {
    font-size: 1.8rem;
  }
}

/*Extraescolares*/
.extra-page {
  background-color: #f4f7f6;
  min-height: 100vh;
}

.extra-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("./../assets/img/extraescolares-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.extra-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.extra-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.extra-intro {
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.extra-intro h2 {
  color: var(--primary-color, #a32434);
  margin-bottom: 20px;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.extra-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border-top: 5px solid var(--primary-color, #a32434);
}

.extra-card:hover {
  transform: translateY(-10px);
}

.extra-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.extra-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.extra-desc {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.extra-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.extra-list li {
  background: #fdf2f2;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9rem;
  color: var(--primary-color, #a32434);
  font-weight: 500;
  text-align: center;
}

.extra-notice {
  margin-top: 50px;
  padding: 20px;
  background-color: #e3f2fd;
  border-radius: 10px;
  text-align: center;
  color: #1976d2;
}

@media screen and (max-width: 768px) {
  .extra-header h1 {
    font-size: 2rem;
  }
  .extra-grid {
    grid-template-columns: 1fr;
  }
}
