/* === Reset y base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #333;
}
.container {
  max-width: 80%;
  margin: 0 auto;
  padding: 20px;
}
/* === Header === */
.main-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  width: 80%;
  margin: 0 auto;
}
.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo img {
  height: 75px;
}
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
.nav-menu a {
  text-decoration: none;
  color: #111;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #fca311;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.presupuesto-btn {
  background: #fca311;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}
.presupuesto-btn:hover {
  background: #e59400;
}
.user-icon i {
  font-size: 20px;
  color: #333;
  transition: color 0.3s;
}
.user-icon:hover i {
  color: #fca311;
}
.lang-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
}
.iso-logo {
  height: 50px;
}
/* === Circuit Image (replacing circular steps) === */
.circuit-image {
  padding: 30px 0;
  text-align: center;
  background: #fff;
}
.circuit-image img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}
/* === Cards Interactivas === */
.servicios-cards {
  padding: 60px 0;
  background: #fff;
  width: 80%;
  margin: 0 auto;
}
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.card {
  width: 220px;
  background: #fca311;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card img {
  max-width: 100%;
  height: 130px;
  object-fit: contain;
  transition: opacity 0.3s;
}
.card-title {
  font-size: 16px;
  font-weight: bold;
  margin: 10px 0;
  color: #000;
}
.card:hover {
  background: #2649a3;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card:hover img {
  opacity: 0;
}
.card:hover .card-title {
  color: #fff;
}
.card:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: #fff;
  padding: 10px;
  white-space: pre-line;
  text-align: center;
}
/* Modern info button */
.info-btn {
  background: #2649a3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-top: 8px;
  font-size: 13px;
}
.info-btn:hover {
  background: #1a3580;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
/* === Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 60%;
  max-width: 600px;
  text-align: center;
}
.close-btn {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-btn:hover {
  color: red;
}
#modal-text {
  white-space: pre-line;
}
/* === Carrusel === */
.carrusel {
  padding: 50px 0;
  overflow: hidden;
  background: #f9f9f9;
  width: 100%;
}
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 80%;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  animation: scroll 25s linear infinite;
  gap: 100px;
}
.carousel-track img {
  width: 20%;
  min-width: 300px;
  object-fit: cover;
  height: 200px;
  flex-shrink: 0;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 100px)); }
}
/* === Video + Texto + Contadores (50/50 layout) === */
.info-video-section {
  padding: 60px 0;
  background: #fff;
  width: 80%;
  margin: 0 auto;
}
.info-video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}
.video-block {
  flex: 1;
  min-width: 45%;
}
.video-block iframe {
  width: 100%;
  height: 350px;
  border-radius: 8px;
}
.info-text-block {
  flex: 1;
  min-width: 45%;
}
.info-description {
  font-size: 16px;
  margin-bottom: 20px;
}
.counters {
  display: flex;
  gap: 30px;
  font-weight: bold;
}
.counter span {
  font-size: 36px;
  color: #fca311;
}
/* === Formulario moderno (50/50 layout) === */
.formulario-contacto {
  background: #f9f9f9;
  padding: 60px 0;
  width: 80%;
  margin: 0 auto;
}
.formulario-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.contact-form {
  flex: 1;
  min-width: 45%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-form button {
  background: #fca311;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.contact-form button:hover {
  background: #e59400;
}
.form-img {
  flex: 1;
  min-width: 45%;
}
.form-img img {
  width: 100%;
  border-radius: 8px;
}
/* === Emails directos === */
.emails-directos {
  padding: 40px 0;
  background: #fff;
  width: 80%;
  margin: 0 auto;
}
.emails-directos p {
  margin-bottom: 10px;
}
/* === Footer === */
.main-footer {
  background: #333;
  color: #fff;
  padding: 40px 0 20px;
  width: 100%;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
}
.footer-about, .footer-links, .footer-subscribe {
  flex: 1;
  min-width: 250px;
}
.footer-about h4, .footer-links h4, .footer-subscribe h4 {
  margin-bottom: 15px;
  font-size: 18px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fca311;
}
.footer-subscribe input {
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}
.footer-subscribe button {
  background: #fca311;
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.footer-subscribe button:hover {
  background: #e59400;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #555;
  width: 80%;
  margin: 30px auto 0;
}
/* === Cookie Button and Modal === */
.cookie-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.cookie-btn button {
  background: #2649a3;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.cookie-btn button:hover {
  background: #1a3580;
}
/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
}
.cookie-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 25px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 15px;
  color: #2649a3;
}
.cookie-options {
  margin: 20px 0;
}
.cookie-option {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-option label {
  width: 80%;
  margin-right: 15px;
}
.switch-container {
  width: 20%;
  display: flex;
  justify-content: flex-end;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2649a3;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
#accept-all-cookies {
  background-color: #2649a3;
  color: white;
}
#save-cookie-preferences {
  background-color: #fca311;
  color: #000;
}
.close-cookie {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* Modificación para la sección de oficina técnica - con franja gris */
.nueva-seccion {
  padding: 60px 0;
  background: #f9f9f9; /* Cambiado a gris */
  width: 75%; /* Ocupa todo el ancho */
}

.nueva-seccion-container {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

/* Modificación para la sección de contacto - sin franja gris */
.formulario-contacto {
  padding: 60px 0;
  background: #fff; /* Cambiado a blanco (sin franja gris) */
  width: 80%;
  margin: 0 auto;
}

/* HEADER RESPONSIVE */
.main-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  border-bottom: 1px solid #eaeaea; /* Línea sutil en lugar de sombra */
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 16px;
}

.nav-menu a:hover {
  color: #2649a3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.presupuesto-btn {
  background: #2649a3;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  white-space: nowrap;
}

.presupuesto-btn:hover {
  background: #1a3580;
}

.user-icon {
  color: #2649a3;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  font-size: 14px;
  white-space: nowrap;
}

.inactive-lang {
  color: #999;
}

.iso-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* Botón menú hamburguesa (oculto en desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #2649a3;
  border-radius: 5px;
  transition: all 0.3s linear;
  transform-origin: center;
}

/* Estilos para móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    transition: left 0.3s ease;
    z-index: 999;
    padding: 30px 20px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 25px;
    width: 100%;
  }
  
  .nav-menu a {
    font-size: 18px;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .header-actions .lang-selector {
    display: none;
  }
  
  .mobile-lang-selector {
    display: flex !important;
    margin-top: 30px;
    justify-content: center;
  }
  
  .header-grid {
    padding: 0 15px;
  }

  
}