:root {
  --color-bg-dark: #0f2b41;
  --color-bg-light: #f6f0ea;
  --color-text-dark: #0f2b41;
  --color-text-light: #ffffff;
  --color-accent: #caa64d;
  --color-accent-hover: #b68d42;
  --color-grey: #ccc;
  --color-grey-dark: #2c3e50;
  --color-bg-form: #ffffff;
  --obligatorio-imput: #cd706a;
  --obligatorio-imput-borde: #d93025;
  --obligatorio-text: #d93025;
  --color-shadow: rgba(202, 166, 77, 0.4);
  --color-border: rgba(255, 255, 255, 0.1);
  --opacity-map: 1;
  --logo-filter: none;
}

[data-theme="dark"] {
  --color-bg-dark: #0f2b41;
  --color-bg-light: #0f2b41;
  --color-text-dark: #927432;
  --color-text-light: #b68d42;
  --color-accent: #927432;
  --color-accent-hover: #b68d42;
  --color-grey: #999;
  --color-grey-dark: #1a252f;
  --color-bg-form: #34495E;
  --obligatorio-imput: #cd706a;
  --obligatorio-imput-borde: #d93025;
  --obligatorio-text: #d93025;
  --color-shadow: rgba(202, 166, 77, 0.4);
  --color-border: rgba(255, 255, 255, 0.2);
  --opacity-map: 0.6;
  --logo-filter: invert(44%) sepia(39%) saturate(385%) hue-rotate(9deg) brightness(0.9);
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--color-bg-dark);
}

body {
    height: 100%;		
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--color-text-dark);
  background: linear-gradient(
    to bottom,
    var(--color-bg-dark) 0px,
    var(--color-bg-dark) 360px,
    var(--color-bg-light) 360px,
    var(--color-bg-light) 100%
  );
  background-attachment: scroll;
}

body.index {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--color-text-dark);
  background: linear-gradient(
    to bottom,
    var(--color-bg-dark) 0px,
    var(--color-bg-dark) 600px,
    var(--color-bg-light) 600px,
    var(--color-bg-light) 100%
  );
  background-attachment: scroll;
}

body.becasdestaco {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--color-text-dark);
  background: linear-gradient(
    to bottom,
    var(--color-bg-dark) 0px,
    var(--color-bg-dark) 370px,
    var(--color-bg-light) 370px,
    var(--color-bg-light) 100%
  );
  background-attachment: scroll;
}

.destacado {
  background: 
    url('/assets/img/fondocontainer.webp') no-repeat center center,
    var(--color-bg-dark);
  background-size: cover;
  color: var(--color-text-light);
  text-align: center;
  padding: 60px 20px;
}

#menu-toggle {
  display: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-bg-dark);
  padding: 10px 20px 0px 0px;
  height: 80px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

main {
  padding-top: 50px;
  flex: 1;
}

.logo-container {
  margin-right: auto;
  margin-left: 0;
  padding-left: 0;
}

.logo-image {
  max-height: 75px;
  height: auto;
  width: auto;
  display: block;
  margin-top: -5px;
  margin-left: 5px;
  filter: var(--logo-filter);
}

#toggle-theme {
  background: none;   
  border: none;       
  padding: 0;         
  cursor: pointer; 
  margin-right: 20px  
}

#toggle-theme i {
  font-size: 1rem;	
  color: var(--color-accent); /* usa la variable */
}	

.menu-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  border-radius: 12px;
  padding: 4px 12px;
  background-color: var(--color-bg-dark);
}

.menu-icon {
  font-size: 2rem;
  color: var(--color-accent);
  cursor: pointer;
  display: none;
  margin-left: auto;
}

.menu-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.menu-links li a {
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: inline-block;
}

.menu-links li a:hover,
.menu-links li a:focus {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
  outline: none;
}

.menu-links li a.active {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
  font-size: 1.05rem;
  text-decoration: none;
}

#menu-toggle:checked ~ .menu-wrapper .menu {
  display: flex;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}



.error-404, .gracias {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background-color: var(--color-bg-light);
}

.error-404 h1, .gracias h1 {
  font-size: clamp(3rem, 8vw, 4rem);
  color: var(--color-text-dark);
  margin: 0 0 0.1em;
  font-weight: 700;
}

.error-404 h2, .gracias h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--color-text-dark);
  margin: 0 0 0.2em;
  font-weight: 700;
}

.error-404 p, .gracias p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  max-width: 800px;
  margin: 0 0 1em;
}

.imagen-error, .imagen-gracias {
  display: block;
  margin: 40px auto 0;
  max-width: 300px;
  width: 100%;
  height: auto;
}

.destacado h2 {
  font-size: clamp(2rem, 8vw, 4rem);
  color: var(--color-accent);
  margin: 0 0 0.5em;
  font-weight: 700;
  text-shadow:
    -1px -1px 0 var(--color-bg-dark),
     1px -1px 0 var(--color-bg-dark),
    -1px  1px 0 var(--color-bg-dark),
     1px  1px 0 var(--color-bg-dark);
}

.destacado h3 {
  font-size: clamp(1rem, 7vw, 3rem);
  font-weight: 500;
  color: #c0c0c0;
  margin: 0;
  line-height: 1.2;
  text-shadow:
    -1px -1px 0 var(--color-bg-dark),
     1px -1px 0 var(--color-bg-dark),
    -1px  1px 0 var(--color-bg-dark),
     1px  1px 0 var(--color-bg-dark);
}

.destacado h3 strong {
  color: var(--color-accent);
  font-weight: 800;
}

.destacado p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
  text-shadow:
    -1px -1px 0 var(--color-bg-dark),
     1px -1px 0 var(--color-bg-dark),
    -1px  1px 0 var(--color-bg-dark),
     1px  1px 0 var(--color-bg-dark);
}


.oposiciones {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.card {
  background-color: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  width: 140px;
  color: var(--color-accent);
  text-align: center;
  cursor: pointer;
  text-shadow:
    -1px -1px 0 var(--color-bg-dark),
     1px -1px 0 var(--color-bg-dark),
    -1px  1px 0 var(--color-bg-dark),
     1px  1px 0 var(--color-bg-dark);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.card span {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.card:hover {
  background-color: rgba(202, 166, 77, 0.2);
  box-shadow: 0 4px 15px rgba(202, 166, 77, 0.4);
  transform: scale(1.05);
}

.info {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  background-color: var(--color-bg-light);
  text-align: center;
  flex-wrap: wrap;
  gap: 30px;
}

.info .column {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.info .column a.link-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-dark);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
}

.info .column a.link-block:hover,
.info .column a.link-block:focus {
  color: var(--color-bg-light);
  background-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(202, 166, 77, 0.6);
  outline: none;
  text-decoration: none;
}

.info .column a.link-block i {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.info .column a.link-block h3 {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
}

.no-estilo-enlace {
  color: inherit;
  text-decoration: none;
}

.no-estilo-enlace:hover {
  color: var(--color-texto-principal);
  text-decoration: underline;
}

.mapa-formulario {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--color-bg-light);
  gap: 40px;
  flex-wrap: wrap;
}

.mapa-container, .formulario-container {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.mapa-container h3, .formulario-container h3 {
  text-align: center;
  margin-bottom: 20px;
}


#map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  opacity: var(--opacity-map);
}

#map, .leaflet-container {
  position: relative;
  z-index: 0; /* por debajo del header */
}

.formulario-base {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formulario-base label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.formulario-base input[type="text"],
.formulario-base input[type="email"],
.formulario-base textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  margin-bottom: 15px;
  background-color: var(--color-bg-form);
  color: var(--color-text-dark);
}

.formulario-base textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.checkbox-column label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.texto-politica {
  white-space: normal;
}

.checkbox-column a {
  color: var(--color-text-dark);
  text-decoration: underline;
  white-space: nowrap;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.custom-checkbox .checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-grey);
  border-radius: 4px;
  background: var(--color-bg-form);
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.custom-checkbox input:checked + .checkmark {
  background:  var(--color-text-dark);   /* dorado */
  border-color: var(--color-grey));
}

.custom-checkbox input:checked + .checkmark::after {
    font-family: "Font Awesome 5 Free"; /* asegúrate de tener FA cargado */
  font-weight: 900;                   /* necesario para fas */
  content: "\f00c"; 
  color: var(--color-bg-light);
  text-shadow: 0 0 0 var(--color-bg-light); /* fuerza el color en iOS */
  font-size: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


.btn-dorado {
  display: block;
  margin: 30px auto 0;
  max-width: 200px;
  background-color: var(--color-accent);
  color: var(--color-bg-light);
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 6px var(--color-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--color-accent);
}

.btn-dorado:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

  .input-error {
    border-color: var(--obligatorio-imput-borde) !important;
    background-color: var(--obligatorio-imput) !important;
  }
  .error-message {
    color: var(--obligatorio-text);
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    display: block;
  }

.modal-form, .modal-aviso {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
}

.modal-contenido, .modal-aviso-contenido {
  background-color: var(--color-bg-light);
  margin: 15% auto;
  padding: 20px 30px;
  border: 2px solid var(--color-bg-dark);
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  animation: fadeIn 0.3s ease-in-out;
}

.spinner-form {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--color-bg-dark);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cerrar-modal {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

  .cerrar-modal:focus {
    outline: 2px solid var(--color-text-dark);
  }

.cerrar-modal:hover {
  color: var(--color-text-light);
}

.texto-cerrar-modal {
  color: var(--color-text-dark);
  font-size: 1.2rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 40px 20px;
  text-align: center;
}

footer .social-icons {
  margin-bottom: 20px;
}

footer .social-icons a {
  margin: 0 10px;
  color: var(--color-accent);
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--color-text-light);
  transform: scale(1.2);
}

footer nav {
  margin-bottom: 20px;
}

footer nav a {
  margin: 0 15px;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer nav a:hover {
  color: var(--color-accent);
}

footer p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
  min-width: 200px;
}

.logo-footer {
  margin: 0;
  font-size: 1.2rem;
  white-space: nowrap;
  color: var(--color-accent);
}

.footer-right {
  flex: 2;
  min-width: 250px;
  text-align: right;
}

.footer-right p {
  margin: 6px 0;
}

.footer-right a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.legal-links {
  font-size: 0.75rem;
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  position: relative;
  padding: 15px 30px 0;
}

.footer-bottom .cookie-link {
  font-size: 0.85rem;
  color: var(--color-accent);
  flex: 0 0 auto;
  text-align: left;
}

.footer-bottom .cookie-link a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom .cookie-link a:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.footer-bottom .copyright {
  font-size: 0.85rem;
  color: var(--color-grey);
  text-align: center;
  flex: 1;
}

header h2, .formulario-container h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--color-bg-dark);
  font-size: 1.5rem;
}

.table-container {
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
  background-color: var(--color-bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-container h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--color-bg-dark);
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.table-container th, .table-container td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-grey);
}

.table-container th {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-container tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,0.05);
}

.table-container tbody tr:hover {
  background-color: rgba(202,166,77,0.2);
}

.table-container td {
  color: var(--color-bg-dark);
}

.sticky-column {
  position: sticky;
  left: 0;
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-weight: bold;
  z-index: 3;
  border-right: 2px solid var(--color-grey);
}

.table-container th.sticky-column {
  background-color: var(--color-accent);
  color: var(--color-text-light);
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 10px;
  background-color: var(--color-grey-dark);
  color: var(--color-accent);
  border-radius: 50%;
  padding: 10px;
  font-size: 18px;
  opacity: 0.95;
  text-align: center;
  text-decoration: none;
  z-index: 1000;
  backdrop-filter: blur(3px);
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px var(--color-shadow);
  display: none;
  border: 2px solid var(--color-accent);
}

.scroll-to-top:hover {
  background-color: var(--color-grey-dark);
  transform: scale(1.1);
}

.scroll-to-top.visible {
  display: block;
}

 /* Estilos para el botón flotante de WhatsApp */
        .whatsapp-float {
            position: fixed;
            width: 60px;
            height: 60px;
            bottom: 60px;
            left: 10px;
            background-color: #25D366;
            color: white;
            border-radius: 50%;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
        }

        .whatsapp-float svg {
            transition: transform 0.3s ease;
        }

        .whatsapp-float:hover {
            background-color: #128C7E;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        }

        .whatsapp-float:hover svg {
            transform: scale(1.1);
        }

        .whatsapp-float:active {
            transform: scale(0.95);
        }

        /* Animación de pulso */
        .whatsapp-float::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border-radius: 50%;
            border: 2px solid #25D366;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(1.3);
                opacity: 0;
            }
        }

        /* Tooltip opcional */
        .whatsapp-float .tooltip {
            visibility: hidden;
            width: 120px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 8px;
            position: absolute;
            z-index: 1001;
            left: 70px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 14px;
            white-space: nowrap;
        }

        .whatsapp-float .tooltip::after {
            content: "";
            position: absolute;
            top: 50%;
            left: -10px;
            margin-top: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: transparent #333 transparent transparent;
        }

        .whatsapp-float:hover .tooltip {
            visibility: visible;
            opacity: 1;
        }

@media (max-width: 1024px) {
  .menu-links {
    gap: 15px;
  }

  .menu-links li a {
    padding: 6px 12px;
    font-size: 0.95rem;
  }

  .menu-wrapper {
    gap: 15px;
    padding: 4px 10px;
  }

  .info {
    flex-direction: column;
    align-items: center;
  }

  .mapa-formulario {
    flex-direction: column;
    align-items: center;
  }

  .table-container {
    margin: 20px auto;
    padding: 10px;
  }
  
  .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* evita que se rompa */
  border: 0;
}
}

@media (max-width: 930px) {
  .logo-image {
    max-height: 60px;
  }

  .menu-icon {
    display: block;
  }

  .menu-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    position: relative;
  }
  
  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 60px;
    background-color: var(--color-bg-dark);
    right: 10px;
    left: auto;
    width: auto;
    max-width: 170px;
    min-width: 170px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--color-shadow);
    z-index: 1000;
  }

  .menu-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-bg-dark);
    border-radius: 8px;
    padding: 10px;
    gap: 10px;
  }

  #menu-toggle:checked ~ .menu-wrapper .menu-links {
    display: flex;
  }


  .menu-links li {
    padding: 0px;
    text-align: left;
  }

  .menu-links li a {
    background-color: transparent;
    padding: 10px 12px;
    width: 100%;
    border-radius: 6px;
    display: block;
    box-sizing: border-box;
	text-align: left;
  }

  .menu-links li a:hover,
  .menu-links li a:focus,
  .menu-links li a.active {
    background-color: var(--color-accent);
    color: var(--color-bg-dark);
  }

  .oposiciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
  }

  .card {
    width: 120px;
    padding: 15px;
  }

  .card span {
    font-size: 0.75rem;
    word-break: break-word;
    line-height: 1.2;
  }
  
    .info {
    padding: 20px 10px;
  }

  .info .column {
    max-width: 100%;
  }


  .footer-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-right {
    text-align: center;
    margin-top: 10px;
  }

  .mapa-formulario {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 15px 0 0;
  }

  .footer-bottom .cookie-link,
  .footer-bottom .copyright {
    text-align: center;
  }
      .error-404 h1, .gracias h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .error-404 h2, .gracias h2 {
    font-size: clamp(1rem, 8vw, 2.5rem);
  }

  .error-404 p, .gracias p {
    font-size: 0.6rem;
    padding: 0 5px; /* evita que el texto toque los bordes */
  }

  .imagen-error {
    max-width: 80%; /* ocupa más espacio en móviles */
    margin-top: 30px;
  }
  
  .imagen-gracias {
    max-width: 50%; /* ocupa más espacio en móviles */
    margin-top: 30px;
  }
  
              .whatsapp-float {
                width: 55px;
                height: 55px;
                bottom: 60px;
                left: 10px;
            }
            
            .whatsapp-float svg {
                width: 28px;
                height: 28px;
            }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 10px;
  }

  .logo-image {
    max-height: 60px;
  }

  .menu-icon {
    font-size: 1.8rem;
  }

  .menu-links {
    padding: 8px;
    gap: 8px;
  }

  .menu-links li a {
    font-size: 0.9rem;
    padding: 8px;
  }

  .destacado {
    padding: 40px 10px;
  }

  .destacado h2 {
    font-size: 1.5rem;
  }

  .destacado h3 {
    font-size: 1.2rem;
  }

  .oposiciones {
    margin-top: 20px;
  }

  .card {
    width: 100%;
    max-width: 200px;
    padding: 15px;
  }

  .info {
    gap: 15px;
  }

  .formulario-base input[type="text"],
  .formulario-base input[type="email"],
  .formulario-base textarea {
    font-size: 0.9rem;
    padding: 10px;
  }

  .btn-dorado {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .table-container {
    padding: 5px;
  }

  .table-container th, .table-container td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  footer {
    padding: 20px 10px;
  }

  footer .social-icons a {
    font-size: 1.2rem;
  }

  footer nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }
}



