* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.navbar {
  background-color: #2e3a4f;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.container {
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 300px;
  flex-wrap: nowrap;
}

.logo img {
  height: 70px;
}

.acciones {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;

}

.acciones a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.acciones a:hover {
  color: #f10303;
}

.divider {
  height: 20px;
  width: 1px;
  background-color: #ccc;
}

@media (max-width: 900px) {

  .menu,
  .acciones {
    display: none;
  }
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.caption {
  position: absolute;
  bottom: 60px;
  left: 50px;
  color: white;
  text-shadow: 1px 1px 5px #000;
}

.caption h2 {
  font-size: 32px;
  max-width: 800px;
}

.caption button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: transparent;
  border: 2px solid white;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  font-size: 32px;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

@media (max-width: 768px) {
  .caption h2 {
    font-size: 20px;
  }

  .caption {
    left: 20px;
    bottom: 40px;
  }
}

/* Pantalla de bienvenida estilo Lear */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 500ms ease, visibility 500ms ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

#preloader .logo {
  width: 120px;
  animation: fadeInZoom 1.5s ease-out;
}

/* Animación tipo Lear */
@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modelo3D {
  padding: 30px 0;
  background-color: #161e2e;
  text-align: center;
}

.sketchfab-embed-wrapper iframe {
  border: none;
  border-radius: 8px;
  max-width: 100%;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 20px 0;
  margin: 0;
  white-space: nowrap;
}

.menu ul li a {
  display: block;
  padding: 12px 16px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 100;
  font-family: "Roboto", monospace;
  transition: background 0.3s ease, color 0.3s ease;

}

.menu ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  /* Gris claro al pasar el mouse */
  color: #f10303;
  box-shadow: 0 0 10px rgba(241, 3, 3, 0.4);
}

a {
  color: white;
}

a:hover {
  color: #ddd;
  /* Un gris claro para el hover */
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span {
  color: white;
}

* {
  margin: 0;
  padding: 0;
}

model-viewer {
  width: 100%;
  height: 1000px;

  background-color: #161e2e;
  background-size: cover;
  background-position: center;
  margin-top: -150px;
}

.hotspot {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
  color: #161e2e;
}

.hotspot:hover {
  transform: scale(1.1);
  background-color: #161e2e;
  color: white;
}

.Hotspot {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.HotspotAnnotation {
  background-color: #161e2e;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.HotspotAnnotation:hover {
  transform: scale(1.2);
}

.progress-bar {
  display: flex;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
}

.update-bar {
  background-color: #f10303;
  height: 100%;
  width: 0%;
  transition: width 0.3s;
}

#ar-button {
  background-color: #f10303;
  color: white;
  border: none;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

#ar-prompt {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: none;
}

.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content h1 {
  font-size: 80px;
  margin-bottom: 20px;
  font-family: "WorkSans", sans-serif;
  font-weight: 500;
  text-align: left;
  line-height: 1.2;
  margin-left: -700px;
  margin-top: 50px;
  z-index: 1;
  position: relative;
}

.hero-content p {
  font-size: 23px;
  font-family: "WorkSans2", sans-serif;
  color: #a19c9c;
  text-align: left;
  line-height: 1.2;
  margin-left: -700px;
  margin-top: 0px;
  z-index: 1;
  position: relative;

}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: block;
  pointer-events: none;
  /* para que no interfiera con clicks */
}

/*SOME OF OUR CLIENT WORJ*/
.clients {
  margin-top: 100px;
  padding: 60px 40px;
  text-align: center;
  background-color: #ffffff;
}

.clients h2 {
  font-size: 24px;
  font-weight: 100;
  margin-bottom: 60px;
  font-family: "Roboto", monospace;
  color: #80848b;
}

.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 30px;
  overflow-x: auto;
  padding: 0 20px;
}

.client-logos img {
  height: 64px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.client-logos img:hover {
  filter: grayscale(0%);
}

.client-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.productos-avanzados {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 60px 20px;
  background-color: #fff;
}

.producto {
  width: 320px;
  font-family: 'Roboto Mono', monospace;
}

.producto img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  height: auto;
}

.producto h2 {
  margin: 20px 0 10px;
  font-size: 20px;
  font-weight: bold;
  color: #222;
}

.producto p {
  color: #000;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
}

.acordeon button.acordeon-titulo {
  width: 100%;
  text-align: left;
  padding: 12px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  position: relative;
}

.acordeon button.acordeon-titulo::after {
  content: "▾";
  position: absolute;
  right: 12px;
  transition: transform 0.3s ease;
}

.acordeon button.acordeon-titulo.activo::after {
  transform: rotate(180deg);
}

.acordeon-contenido {
  display: none;
  padding: 10px 0;
  font-size: 14px;
  color: #161e2e;
}

.hero2 {
  position: relative;
  background-image: url('img/fondos/fondo3.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: white;
  overflow: hidden;
}

.hero-content2 h1 {
  font-size: 69px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: left;
  line-height: 1.2;
  margin-left: -700px;
  margin-top: 50px;
}

.hero-content2 p {
  font-size: 23px;
  font-family: "WorkSans2", sans-serif;

  color: #b43333;
  text-align: left;
  line-height: 1.2;
  margin-left: -700px;
  margin-top: 0px;

}

.wave2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: block;
  pointer-events: none;
  /* para que no interfiera con clicks */
}

.model-container {
  position: relative;
  width: 100%;
  height: 100vh;
  /* altura completa de la pantalla */
  overflow: hidden;
}

.model-container model-viewer {
  width: 100%;
  height: 100%;
}

#castmetLogo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#castmetLogo img {
  width: 320px;
  /* ajusta a tu gusto */
  height: auto;
  display: block;
}

#castmetLogo:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.about-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: white;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.about-panel.open {
  transform: translateX(0%);
}

.about-panel iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
}

.about-header {
  background-color: #ffffff;
  padding: 10px 20px;
  text-align: right;
  border-bottom: 1px solid #ddd;
}


.close-about {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 20px;
  font-family: 'Roboto Mono', monospace;
  color: white;
  z-index: 10000;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 5px;
}

/* Estilos para la sección HKDI */
.hkdi-container {
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  padding: 40px;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.hkdi-header {
  text-align: center;
  margin-bottom: 30px;
}

.hkdi-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hkdi-english-name {
  font-size: 24px;
  letter-spacing: 5px;
  margin-bottom: 5px;
}

.hkdi-chinese-name {
  font-size: 28px;
  margin: 15px 0;
}

.hkdi-divider {
  border-top: 1px solid #333;
  margin: 30px 0;
}

.hkdi-member {
  font-size: 14px;
  margin-bottom: 5px;
}

.hkdi-vtc {
  font-size: 12px;
  margin-bottom: 30px;
}

.hkdi-about {
  font-size: 16px;
  line-height: 1.6;
}

.hkdi-about-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Sección dividida mitad texto, mitad imagen */
.split-hero {
  display: flex;
  height: 70vh;
  font-family: 'Roboto Mono', monospace;
}

/* Parte izquierda: texto */
.hero-text {
  flex: 1;
  background-color: #161e2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.hero-text h1 {
  font-size: 62px;
  font-weight: 800;

  margin-bottom: 20px;
  color: #b0b8c1;
}

.hero-text p {
  font-size: 24px;
  line-height: 1.6;
  color: #b0b8c1;
}

/* Parte derecha: imagen */
.hero-image {
  flex: none;
  width: 50%;
  background-image: url('img/fondos/fondo10.jpg');
  /* Cambia esta ruta a tu imagen real */
  background-size: cover;
  background-position: center;
}

/* Barra ticker inferior */
.ticker-wrapper {
  width: 100%;
  background-color: rgb(153, 55, 55);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 10px 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
}

.ticker {
  display: inline-block;
  padding-left: 100%;
  animation: scrollTicker 25s linear infinite;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Parte derecha: imagen */
.hero-image2 {
  flex: none;
  width: 50%;
  background-image: url('img/fondo8.jpg');
  /* Cambia esta ruta a tu imagen real */
  background-size: cover;
  background-position: center center;
}

.hero-image3 {
  flex: none;
  width: 50%;
  background-image: url('img/fondo4.jpg');
  /* Cambia esta ruta a tu imagen real */
  background-size: cover;
  background-position: center center;
}

/* Banner de contacto */
.contact-banner {
  background: url('img/contacto2.jpg') center/cover no-repeat;
  height: 90vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  padding-right: 6vw;
}

.contact-banner-content h2 {
  font-size: 80px;
  margin-bottom: 10px;
  text-align: left;
  margin-top: 200px;

}

.contact-banner-content p {
  font-size: 32px;
  text-align: left;
}

.contact-info {
  padding: 60px 10%;
  background-color: black;
  text-align: left;
}

.contact-info h2 {
  font-size: 62px;
  margin-bottom: 40px;
  margin-top: 30px;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  margin-top: 100px;
  justify-content: center;

}

.info-block .icon {
  font-size: 40px;
  margin-bottom: 10px;
  color: black;
}

.contact-image img {
  width: 100%;
  max-width: 800px;
  margin: auto;
  display: block;
  border-radius: 10px;
  margin-top: 10px;

}

.contact-form-section {
  padding: 60px 10%;
  background-color: #f8f8f8;
  border-top: 1px solid #ccc;
}

.contact-form-section h2 {
  font-size: 62px;
  margin-bottom: 30px;
  color: black;
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.form-text {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  justify-content: right;
}

.form-text p {
  color: black;
  font-size: 24px;
}

.social-icons i {
  font-size: 20px;
  margin-right: 15px;
  margin-top: 10px;
}

.privacy-note {
  font-size: 12px;
  color: #555;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.contact-form button {
  background-color: black;
  color: white;
  padding: 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 30px;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.contact-banner {
  position: relative;
}

html {
  scroll-behavior: smooth;
}

/* Flecha centrada y animada */
.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 30px;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Ajuste para que al hacer scroll, el título quede parcialmente oculto */
#contact-castmet {
  scroll-margin-top: 100px;
}

.info-block {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 50px;
  max-width: 500px;
}

.info-block h3 {
  font-size: 32px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 6px;
}

.info-block p {
  font-size: 24px;
  line-height: 1.4;
}

.info-icon-box {
  width: 100px;
  height: 100px;
  border: 2px dashed #333;
  border-radius: 0 0 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon {
  width: 50px;
  height: 50px;
}

.img-hover {
  width: 300px;
  height: auto;
  transition: transform 0.3s ease;
  /* Transición suave */
}

.img-hover:hover {
  transform: scale(1.05);
  /* Zoom al pasar el mouse */
}

/* Representados*/
.fundicion-section {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.fundicion-header .subtitulo {
  color: #ff4c00;
  font-weight: bold;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.fundicion-header .titulo {
  font-family: 'Anton', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.fundicion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* Si solo hay 2 tarjetas al final (posición 11 y 12 por ejemplo) */
.fundicion-grid>.marca:nth-last-child(2) {
  grid-column: 2 / span 1;
  /* Se coloca en la segunda columna */
}

.fundicion-grid>.marca:nth-last-child(1) {
  grid-column: 3 / span 1;
  /* Se coloca en la tercera columna */
}


.marca {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.marca:hover {
  transform: translateY(-5px);
}

.marca img {
  max-height: 80px;
  max-width: 250px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.marca h3 {
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2e3a4f;
}

.marca p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.btn-saber-mas {
  display: inline-block;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-saber-mas i {
  margin-left: 5px;
}


.hero3 {
  position: relative;
  background-image: url('img/fondos/fondo11.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: white;
  overflow: hidden;
}

.hero-content3 h1 {
  font-size: 69px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: left;
  line-height: 1.2;
  margin-left: -500px;
  margin-top: 50px;
}

.hero-content3 p {
  font-size: 23px;
  font-family: "WorkSans2", sans-serif;

  color: #a19c9c;
  text-align: left;
  line-height: 1.2;
  margin-left: -500px;
  margin-top: 0px;

}

.wave2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: block;
  pointer-events: none;
  /* para que no interfiera con clicks */
}

.hidden {
  display: none;
}

/*Idioma*/
.language-selector {
  position: relative;
  display: inline-block;
}

.language-selector i {
  font-size: 20px;
  color: white;
  cursor: pointer;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  z-index: 1000;
  width: 220px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.language-dropdown h4 {
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 16px;
  color: #161e2e;
}

.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.language-list li {
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.language-list li:hover {
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 2px 6px;
}

.language-list .flag {
  height: 16px;
  margin-right: 10px;
}

.continue-btn {
  display: block;
  margin-top: 15px;
  background-color: #161e2e;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.continue-btn:hover {
  background-color: #2e3a4f;
}

/* -------------------- Responsive para tablets -------------------- */
@media (max-width: 1024px) {

  .hero-content h1,
  .hero-content2 h1,
  .hero-content3 h1 {
    font-size: 48px;
    margin-left: 0;
    text-align: center;
  }

  .hero-content p,
  .hero-content2 p,
  .hero-content3 p {
    font-size: 18px;
    margin-left: 0;
    text-align: center;
  }

  .contact-banner-content h2 {
    font-size: 50px;
  }

  .contact-banner-content p {
    font-size: 24px;
  }

  .info-grid {
    gap: 30px;
  }

  .form-text p {
    font-size: 20px;
  }
}

/* -------------------- Responsive para móviles -------------------- */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .hero2,
  .hero3 {
    height: auto;
    padding: 60px 20px;
  }

  .hero-content h1,
  .hero-content2 h1,
  .hero-content3 h1 {
    font-size: 36px;
    margin-left: 0;
    text-align: center;
  }

  .hero-content p,
  .hero-content2 p,
  .hero-content3 p {
    font-size: 16px;
    margin-left: 0;
    text-align: center;
  }

  .split-hero {
    flex-direction: column;
    height: auto;
  }

  .hero-image,
  .hero-image2,
  .hero-image3 {
    width: 100%;
    height: 250px;
  }

  .contact-banner-content h2 {
    font-size: 40px;
    margin-top: 100px;
  }

  .contact-banner-content p {
    font-size: 18px;
  }

  .info-grid {
    flex-direction: column;
    gap: 30px;
  }

  .form-container {
    flex-direction: column;
  }

  .productos-avanzados {
    gap: 20px;
    padding: 40px 10px;
  }

  .producto {
    width: 100%;
  }

  .client-logos {
    gap: 20px;
    padding: 0 10px;
  }

  .contact-info h2,
  .contact-form-section h2 {
    font-size: 40px;
  }
}

.castmet-logo-container {
  text-align: center;
  margin-top: 3rem;
}

.castmet-frase {
  color: rgb(194, 35, 7);
  /* Rojo CASTMET */
  font-size: 4rem;
  font-weight: 1000;
  margin-top: 520px;
  font-family: 'Arial Black', 'Arial', sans-serif;
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/fondos/Imagen1.png');
  /* Asegúrate que la imagen esté en la carpeta correcta */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  /* Asegura que quede detrás de todo */
}

.servicios-section {
  text-align: left;
  padding: 40px;
  background-color: #1d1d1d;
  color: #fff;
}

.titulo-principal {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.servicio-card {
  background-color: #fff;
  color: #000;
  flex: 1 1 calc(25% - 15px);
  padding: 20px;
  box-sizing: border-box;
  min-width: 200px;
}

.icono {
  font-size: 2rem;
  margin-bottom: 10px;
}

.servicio-card h3 {
  font-weight: bold;
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.boton-container {
  margin-top: 20px;
}

.btn-contacto {
  background-color: #bbb;
  color: #000;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-contacto:hover {
  background-color: #999;
}

/* Adaptable para pantallas pequeñas */
@media (max-width: 768px) {
  .servicio-card {
    flex: 1 1 100%;
  }
}

/*Nuestros Servicios*/
.servicios-section {
  text-align: left;
  padding: 150px;
  background-color: #a02222;
  color: #fff;
}

.titulo-principal {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.servicio-card {
  background-color: #fff;
  color: #161e2e;
  flex: 1 1 calc(25% - 15px);
  padding: 20px;
  box-sizing: border-box;
  min-width: 200px;
  min-height: 350px;
  /* ← aumenta el largo */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.icono {
  font-size: 2rem;
  margin-bottom: 120px;
}

.servicio-card h3 {
  font-weight: bold;
  margin-bottom: 40px;
  color: #000;
  font-size: 30px;
  text-align: center;

}

.servicio-card p {
  font-size: 1rem;
  line-height: 1.4;
  flex-grow: 1;
  color: #000;
}

.boton-container {
  margin-top: 25px;
}

.btn-contacto {
  background-color: #a02222;
  color: #000;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-contacto:hover {
  background-color: #a02222;
}

/* Adaptable para pantallas pequeñas */
@media (max-width: 768px) {
  .servicio-card {
    flex: 1 1 100%;
    min-height: auto;
  }
}

/*Nuestros Proyectos*/

.proyectos-section {
  padding: 100px;
  background-color: #fff;
  color: #000;
  position: relative;
}

.titulo-proyectos {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #161e2e;
}

.proyectos-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.proyectos-container {
  display: flex;
  gap: 30px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  padding-bottom: 10px;
}

.proyecto-item {
  flex: 0 0 auto;
  width: 250px;
  /* Ancho fijo como en tu ejemplo */
  text-align: center;
}

.proyecto-item img {
  width: 100%;
  height: 300px;
  /* Alto fijo para que todas sean iguales */
  object-fit: cover;
  /* Recorta para mantener proporción */
  display: block;
  margin: 0 auto;
}

.proyecto-item h3 {
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 8px;
  text-align: left;
  color: #a02222;
  /* Como en la imagen */
}

.btn-flecha {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.btn-flecha:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.btn-flecha.izquierda {
  left: -15px;
}

.btn-flecha.derecha {
  right: -15px;
}

.Hotspot {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.HotspotAnnotation {
  background-color: #fff;
  color: #161e2e;
  font-weight: bold;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Texto oculto inicialmente */
.hotspot-info {
  opacity: 0;
  font-size: 12px;
  padding: 8px;
  text-align: center;
  transition: opacity 0.3s ease;
  white-space: normal;
  max-width: 150px;
  color: #161e2e;
}

/* Efecto hover: círculo se agranda y se vuelve cuadrado */
.HotspotAnnotation:hover {
  width: 160px;
  height: auto;
  border-radius: 8px;
  padding: 10px;
  flex-direction: column;
}

/* Mostrar texto al hacer hover */
.HotspotAnnotation:hover .hotspot-info {
  opacity: 1;
}

.Hotspot2 {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.HotspotAnnotation2 {
  background-color: #a02222;
  color: #161e2e;
  font-weight: bold;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Texto oculto inicialmente */
.hotspot-info2 {
  opacity: 0;
  font-size: 12px;
  padding: 8px;
  text-align: center;
  transition: opacity 0.3s ease;
  white-space: normal;
  max-width: 150px;
  color: #fff;
}

/* Efecto hover: círculo se agranda y se vuelve cuadrado */
.HotspotAnnotation2:hover {
  width: 160px;
  height: auto;
  border-radius: 8px;
  padding: 10px;
  flex-direction: column;
}

/* Mostrar texto al hacer hover */
.HotspotAnnotation2:hover .hotspot-info2 {
  opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: auto;
}

.contact-form input, 
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    padding: 0.8rem;
    border: none;
    background: #ff6600;
    color: white;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #e65500;
}