@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic&display=swap');

@font-face {
  font-family: 'Open Sans Italic';
  src: url('OpenSans-Italic.ttf') format('truetype');
  font-style: italic;
}

body {
  font-family: 'Open Sans', sans-serif; 
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #171717;
  overflow-x: hidden;
}

header {
  background-color: #171717;
  padding: 0.15rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0.125rem;
  position: relative;
  border-bottom: 1px solid #F0F0F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Open Sans', sans-serif; 
}

.logo-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo-container .logo-image {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* Hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 1rem;
  z-index: 11;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background-color: #ffffff;
  margin: 4px 0;
  transition: 0.4s;
}

.header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 35%;
  right: 1%;
  font-size: 1.2rem;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0 1.5rem;
  padding: 0;
  align-items: center;
}

header nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

header nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 400;
  transition: color 0.3s ease;
  display: inline-block;
}

header nav ul li a:hover {
  color: #007BFF;
}

header nav ul li a.nav-contacto {
  background-color: #FFD700 !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.25);
}

header nav ul li a.nav-contacto:hover {
  background-color: #FFC700 !important;
  color: #000 !important;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

header nav ul li:hover > ul.dropdown {
  display: block;
}

header nav ul .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 25%;
  transform: translateX(-50%);
  background-color: rgb(85, 84, 84);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  list-style: none;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 10;
  min-width: 160px;
}

header nav ul .dropdown li {
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s ease;
}

header nav ul .dropdown li:hover {
  background-color: #505050;
}

.column ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.column li {
  color: rgb(98, 98, 98);
  font-family: Italic_Raleway, sans-serif;
  font-style: italic;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 0.2rem;
}

.container h2 {
  display: flex;
  justify-content: center;
  font-size: 2rem;
  letter-spacing: 0.25rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .header-container {
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .header-container ul {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #171717;
    border-top: 1px solid #333;
  }

  .header-container ul.show {
    display: flex;
  }

  .header-container ul li {
    width: 100%;
  }

  .header-container ul li a {
    padding: 1rem;
    display: block;
    width: 100%;
  }

  .header-container ul .dropdown {
    position: static;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    background-color: #2c2c2c;
    padding: 0;
  }

  .header-container ul li:hover > .dropdown {
    display: block;
  }

  .header-container ul .dropdown li a {
    padding-left: 2rem;
  }
}



/* Contenedores del formulario */
.container {
  max-width: 800px;
  margin: 3rem auto;
  background: linear-gradient(135deg, #232323, #1a1a1a);
  padding: 2.5rem 3rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif; 
}

.container h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.15rem;
  color: #ffd700; /* Amarillo dorado */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    font-family: 'Open Sans', sans-serif; 
}

label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: #ddd;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1.7rem;
  border: 1.8px solid transparent;
  border-radius: 0.75rem;
  background-color: #2f2f2f;
  color: #eee;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  font-family: 'Poppins', sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  background-color: #383838;
  border-color: #ffd700;
  outline: none;
  box-shadow: 0 0 8px #ffd700;
}

textarea {
  resize: vertical;
  min-height: 140px;
  font-family: 'Poppins', sans-serif;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(135deg, #ffbf00, #ff9f00);
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 191, 0, 0.7);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #ffdb4d, #ffbf00);
  transform: scale(1.07);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.9);
}

select {
  appearance: none;
  background-color: #2f2f2f;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gold" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}


.container h1,
label {
  font-family: 'Open Sans', sans-serif; 
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.row .field-group {
  flex: 1;
  min-width: 250px;
}

/* Sección adicional del formulario */
.radio-group,
.checkbox-group,
.file-group,
.date-group {
  margin-bottom: 2rem;
}

.radio-group label,
.checkbox-group label,
.file-group label,
.date-group label {
  font-weight: 600;
  font-size: 1.15rem;
  color: #ddd;
  margin-bottom: 0.5rem;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.2);
}

input[type="date"],
input[type="file"] {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: #2f2f2f;
  color: #eee;
  border: 1.8px solid transparent;
  border-radius: 0.75rem;
  font-size: 1.05rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="date"]:focus,
input[type="file"]:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px #ffd700;
  outline: none;
}

button[type="button"] {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ffbf00, #ff9f00);
  color: #222;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 191, 0, 0.7);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button[type="button"]:hover {
  background: linear-gradient(135deg, #ffdb4d, #ffbf00);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.9);
}

p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}


@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 1.5rem 2rem;
  }

  .container h1 {
    font-size: 2.2rem;
  }
}

/* Footer */

footer {
  background-color: #2c2c2c;
  padding: 2rem 1rem;
  color: #bbb;
  font-family: 'Segoe UI', sans-serif;
}

.main-footer {
  background-color: #121212;
  color: #ffffff;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand img {
  height: 90px;
  margin-bottom: 0.3rem;
}

.company-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #f0f0f0;
  margin: 0;
}

.footer-links,
.footer-contact {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #ffcc00;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.3rem;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #007bff;
}

.footer-contact p {
  margin: 0.3rem 0;
  line-height: 1.4;
  color: #ddd;
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #888;
}

.footer-links ul li a,
.footer-contact a {
  color: #f9c74f; /* Un amarillo cálido y amigable */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #f9844a; /* Naranja suave para el hover */
  text-decoration: underline;
}


/* Responsive */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    flex: none;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}


/* Loader */

/* From Uiverse.io by Pankaj-Meharchandani */ 
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  --animation: 2s ease-in-out infinite;
}

.loader .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 20px;
  height: 20px;
  border: solid 2px transparent;
  border-radius: 50%;
  margin: 0 10px;
  background-color: transparent;
  animation: circle-keys var(--animation);
}

.loader .circle .dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: dot-keys var(--animation);
}

.loader .circle .outline {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: outline-keys var(--animation);
}

.circle:nth-child(1) {
  --color: #4285f4; /* Blue */
  border-color: var(--color);
}

.circle:nth-child(1) .dot {
  background-color: var(--color);
}

.circle:nth-child(2) {
  --color: #ea4335; /* Red */
  border-color: var(--color);
  animation-delay: 0.3s;
}

.circle:nth-child(2) .dot {
  background-color: var(--color);
  animation-delay: 0.3s;
}

.circle:nth-child(3) {
  --color: #fbbc05; /* Yellow */
  border-color: var(--color);
  animation-delay: 0.6s;
}

.circle:nth-child(3) .dot {
  background-color: var(--color);
  animation-delay: 0.6s;
}

.circle:nth-child(4) {
  --color: #34a853; /* Green */
  border-color: var(--color);
  animation-delay: 0.9s;
}

.circle:nth-child(4) .dot {
  background-color: var(--color);
  animation-delay: 0.9s;
}

.circle:nth-child(5) {
  --color: #4285f4; /* Blue (repeat for continuity) */
  border-color: var(--color);
  animation-delay: 1.2s;
}

.circle:nth-child(5) .dot {
  background-color: var(--color);
  animation-delay: 1.2s;
}

.circle:nth-child(1) .outline {
  animation-delay: 0.9s;
}

.circle:nth-child(2) .outline {
  animation-delay: 1.2s;
}

.circle:nth-child(3) .outline {
  animation-delay: 1.5s;
}

.circle:nth-child(4) .outline {
  animation-delay: 1.8s;
}

.circle:nth-child(5) .outline {
  animation-delay: 2.1s;
}

@keyframes circle-keys {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes dot-keys {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes outline-keys {
  0% {
    transform: scale(0);
    outline: solid 20px var(--color);
    outline-offset: 0;
    opacity: 1;
  }

  100% {
    transform: scale(1);
    outline: solid 0 transparent;
    outline-offset: 20px;
    opacity: 0;
  }
}

#loader-overlay {
  position: fixed;
  inset: 0; /* shorthand para top, right, bottom, left = 0 */
  background: rgba(0, 0, 0, 0.8); /* semitransparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* encima de todo */
}


/* Mensaje de éxito y código */
.mensaje-exito {
  background-color: #1e1e1e;
  color: #00ff88;
  font-weight: bold;
  padding: 12px;
  text-align: center;
  margin-top: 15px;
  border-radius: 8px;
  display: none;
}

.codigo-container {
  margin-top: 15px;
  text-align: center;
}

.codigo-box {
  display: inline-block;
  background-color: #222;
  border: 2px solid #00ff88;
  color: #00ff88;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1em;
  letter-spacing: 1px;
  margin-top: 5px;
}


/* ============ BANNER STYLES ============ */
.banner {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 140px;
  max-height: 36vh;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.banner img {
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center;
  object-position: center 45%;
  display: block;
  cursor: pointer;
}

.banner a {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.banner h3 {
  display: none;
}

.banner-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.banner-close:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

/* Banner type colors (only visible if no image) */
.banner-banner { background: linear-gradient(135deg, #8B0000 0%, #1e3a8a 100%); }
.banner-popup { background: linear-gradient(135deg, #8B0000 0%, #1e40af 100%); }
.banner-carousel { background: linear-gradient(135deg, #8B0000 0%, #1e3a8a 100%); }
.banner-info { background: #0284c7; }
.banner-success { background: #16a34a; }
.banner-warning { background: #ea580c; }
.banner-danger { background: #dc2626; }

/* ============ POP-UP STYLES ============ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.popup-modal h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.5rem;
  color: #1f2937;
}

.popup-modal a {
  display: inline-block;
  width: 100%;
}

.popup-modal a img {
  width: 100%;
  height: auto;
}

.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #1f2937;
}

/* Responsive */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    padding: 0.75rem;
    min-height: 120px;
    max-height: 24vh;
    aspect-ratio: 16 / 5;
  }

  .banner img {
    height: 100%;
    max-height: inherit;
  }

  .popup-modal {
    padding: 1.5rem;
  }

  .popup-modal h2 {
    font-size: 1.25rem;
  }
}

/* ============ CAROUSEL STYLES ============ */
.carousel-container {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  overflow: hidden;
  min-height: 240px;
  max-height: 60vh;
  aspect-ratio: 16 / 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.carousel-content {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 10;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-weight: bold;
  border-radius: 0.5rem;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1.5rem;
}

.carousel-next {
  right: 1.5rem;
}

.carousel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.2s ease;
  padding: 0;
  border-radius: 50%;
  line-height: 1;
}

.carousel-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  /* Responsive banner */
  .banner {
    min-height: 90px;
    max-height: 18vh;
    aspect-ratio: 16 / 4;
  }

  .banner-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
  }

  .banner-description {
    padding: 1.5rem 1rem;
  }

  .banner-description p {
    font-size: 1rem;
  }

  /* Responsive carousel */
  .carousel-container {
    min-height: 180px;
    max-height: 50vh;
    aspect-ratio: 16 / 9;
  }

  .carousel-content {
    min-height: inherit;
  }

  .carousel-nav {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  .carousel-prev {
    left: 0.75rem;
  }

  .carousel-next {
    right: 0.75rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-dots {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .carousel-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    font-size: 1.4rem;
  }
}
