* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* SUAVIZADO GENERAL */
html {
  scroll-behavior: smooth;
}

body {
  padding-top: 100px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

:root {
  --blue-01: #00265f;
  --blue-02: #f3f4fc;
  --blue-03: #2d3e50;
  --blue-04: #2066a0;

  --br-15: 15px;

  --sw-blu-01: 0 4px 15px rgba(102, 126, 234, 0.4);
  --sw-bk-01: 0 2px 10px rgba(0, 0, 0, 0.1);
  --col-bk: #000000;
  --col-white: #ffffff;
  --col-tom-01: #ff6b35;
}

/* TODOS LOS ENLACES DE LA PÁGINA COMO BOTONES */

a {
  line-height: 1.2;
  display: inline-block;
  padding: 12px 24px;
  margin: 8px;
  color: var(--blue-01) !important;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sw-blu-01);
  border: 2px solid transparent;
  background: var(--col-white);
}

.content {
  width: 100%;
  max-width: 1200px;
}

header {
  width: 100%;
  max-width: 1200px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--col-white);
  box-shadow: var(--sw-bk-01);
  z-index: 1000;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.logo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* gap: 0.5rem; */
}

.LogoDizatel {
  height: 60px;
  width: auto;
}

.logotext {
  color: var(--blue-01);
  font-size: 0.9rem;
  font-weight: 600;
  /* margin: 0.5em; */
  text-shadow: var(--sw-bk-01);
  text-align: center;
}

.navbar {
  width: 100%;
  max-width: 800px;
  height: 150px;
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  border-radius: 5px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-radius: 0px;
  gap: 5px;
}

ul,
ol {
  list-style: none;
}

.nav-links li ul {
  display: none;
  position: absolute;
  flex: 1;
  max-width: 180px;
}

.nav-links > li {
  float: left;
}

.nav-links li:hover > ul {
  display: block;
}

.nav-links a {
  width: 130px;
  min-height: 60px;
  display: block;
  text-decoration: none;
  color: var(--col-white);
  text-align: center;
  border: 1px solid transparent;
  border-radius: 5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin: auto;
}

.nav-links a::before {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.nav-links a:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  border-bottom: solid 5px var(--blue-01);
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a.active {
  background: linear-gradient(45deg, #ff6b35, #f7931e) !important;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* HAMBURGER MOBILE */
.hamburger {
  background: var(--blue-01);
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--col-white);
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger {
  transition: transform 0.3s ease;
}

.hamburger.active {
  transform: scale(0.9);
}

/* Banner */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 100vh;
  min-height: 450px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--col-white);
  text-align: center;
}

.video-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content h1 {
  margin: 10px 0;
  font-size: 1.5rem;
  text-shadow: var(--sw-bk-01);
}

.hero-content p {
  max-width: 800px;
  font-size: 1rem;
  margin: 20px 0 30px;
  text-shadow: var(--sw-bk-01);
}

.hero-buttons button {
  margin: 10px 15px;
  padding: 14px 35px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--blue-01);
  color: var(--col-white);
  font-weight: bold;
  box-shadow: var(--sw-bk-01);
}

/* VARIOS */
.services,
.nequipo,
.mi-galeria,
.galvanizado {
  padding: 50px 20px;
  text-align: center;
}

/*****************************/

.acordeon-nosotros {
  max-width: 800px;
  width: 100%;
  background: var(--col-white);
  border-radius: var(--br-15);
  box-shadow: var(--sw-bk-01);
  overflow: hidden;
  padding: 1rem 0;
}

/* Cada ítem del acordeón */
.acordeon-item {
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.acordeon-item:last-child {
  border-bottom: none;
}

/* Botón / Título del acordeón */
.acordeon-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.8rem;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  color: #1e293b;
}

.acordeon-header:hover {
  background-color: #f3f4fc;
}

.acordeon-header span {
  color: var(--blue-01);
}

/* Icono + / - */
.acordeon-icono {
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.2s ease;
  color: var(--blue-01);
}

/* Contenido colapsable (oculto por defecto) */
.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--blue-02);
  padding: 0 1.8rem;
}

/* Cuando está activo, el contenido muestra padding y altura dinámica */
.acordeon-item.active .acordeon-contenido {
  max-height: 500px;
  padding-bottom: 1.5rem;
  padding-top: 0.5rem;
}

/* Estilo interior del contenido */
.contenido-interno {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 5px;
}

.contenido-interno p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--col-bk);
  margin: 0;
}

.contenido-interno img {
  width: 100%;
  max-width: 225px;
  border-radius: 1rem;
  margin-top: 0.5rem;
  display: block;
  object-fit: cover;
  box-shadow: var(--sw-bk-01);
}

/* Estilo especial para los valores */
.lista-valores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.lista-valores span {
  background: var(--col-white);
  padding: 0.3rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-01);
}

/****************************/

/***nuestro equipo***/
.nequipo {
  margin: auto;
  max-width: 1200px;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.team-card {
  background: var(--blue-02);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sw-bk-01);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-align: center;
  padding: 20px;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid var(--blue-03);
}

.team-card h3 {
  margin: 10px 0 5px;
  font-size: 1.3rem;
  color: var(--blue-01);
  font-weight: 600;
}

.team-card .role {
  color: var(--blue-03);
  font-weight: bold;
  margin-bottom: 10px;
}

.impact-msg {
  font-style: italic;
  color: var(--col-bk);
  margin-top: 12px;
  font-size: 0.95rem;
}

.team-card p {
  color: var(--col-bk);
  font-size: 0.95rem;
}

/**NOSOTROS**/
.services {
  justify-content: space-around;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  border: 5px;
}

/* Estilos para la sección nosotros */
#nosotros {
  padding: 50px 20px;
  overflow-x: hidden;
}

#nosotros .services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

/* Contenedor de las cards de nosotros */
.nosotros-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Animaciones */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clases para las animaciones específicas */
.nosotros-card.visible {
  animation: fadeIn 0.8s ease forwards;
}

/* Estilos para el texto y la imagen en nosotros-card */
.nosotros-card h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 24px;
}

.nosotros-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.nosotros-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}

/* Carrusel múltiple - estilo cards */
.carousel-multiple {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-card {
  flex: 0 0 auto;
  width: 350px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-card img {
  width: 100%;
  /* height: 250px; */
  object-fit: cover;
  display: block;
}

.carousel-card .card-content {
  padding: 15px;
}

.carousel-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.carousel-card p {
  margin: 0;
  color: #666;
  font-size: 0.9em;
}

/* Botones de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blue-04);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s;
  padding-bottom: 40px;
  box-shadow: var(--sw-blu-01);
}

.carousel-btn:hover {
  background: var(--blue-04);
  transform: translateY(-50%) scale(1.05);
}

.btn-prev {
  left: 10px;
}

.btn-next {
  right: 10px;
}

/* Indicadores */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--blue-04);
  width: 25px;
  border-radius: 5px;
}

/* Controles adicionales */
.carousel-controls-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  padding: 8px 20px;
  background: var(--blue-04);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.control-btn:hover {
  background: var(--blue-01);
}

/***Carrousel obsoleto***/
.carrusel-section {
  padding: 40px 20px;
  text-align: center;
  background: var(--col-white);
  margin: 40px auto;
  border-radius: 10px;
}

.carrusel-container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.carrusel-track {
  display: flex;
  animation: slide 24s linear infinite;
  will-change: transform;
}

.carrusel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
  box-sizing: border-box;
}

.item {
  width: 225px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
}

.item img {
  width: 225px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 10px;
  box-shadow: var(--sw-bk-01);
}

.item p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #444;
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-300%);
  }
}

.carrusel-container:hover .carrusel-track {
  animation-play-state: paused;
}

/**Galeria**/
.mi-galeria {
  max-width: 1200px;
  padding: 60px 20px;
  text-align: center;
  margin: auto;
  overflow: hidden;
}

.image-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow: hidden;
}

.gallery-target {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 2%;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.txt-gallery {
  height: 50px;
  margin-top: 5px;
  margin-bottom: 15px;
  padding-top: 5px;
  padding-bottom: 5px;
}

/* Fade-in */
.fade-in.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide desde derecha */
.slide-right {
  transform: translateX(50px) scale(0.95);
}
.slide-right.animated {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Slide desde izquierda */
.slide-left {
  transform: translateX(-50px) scale(0.95);
}
.slide-left.animated {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/**Galvanizado**/
.galvanizado {
  background: #f0f0f0;
  border-radius: 10px;
  max-width: 1200px;
  padding: 60px 20px;
  text-align: center;
  margin: auto;
}

.image-galvanizado {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

/**Corte Metal CNC**/
.cortecnc {
  background: #f0f0f0;
  border-radius: 10px;
  max-width: 1200px;
  padding: 60px 20px;
  text-align: center;
  border: 8px double #d4af37;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  margin: 20px auto;
}

.image-cortecnc {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  background: var(--col-white);
  padding: 24px;
  border-radius: var(--br-15);
  box-sizing: border-box;
  border: 5px solid transparent;
  background:
    linear-gradient(var(--blue-02), var(--col-white)) padding-box,
    linear-gradient(
        135deg,
        #f9e4b7 0%,
        #f0d08a 20%,
        #d4af37 40%,
        #b5893e 50%,
        #8b6f2e 60%,
        #d4af37 80%,
        #f0d08a 100%
      )
      border-box;
}

.video-bg {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}

.video-bg2 {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: var(--br-15);
  box-shadow: var(--sw-bk-01);
}

.video-cortecnc {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 1px auto;
  background: var(--col-white);
  border-radius: var(--br-15);
  box-sizing: border-box;
  border: 2px solid transparent;
  box-shadow: var(--sw-bk-01);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float img {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
  box-shadow: var(--sw-bk-01);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  box-shadow: var(--sw-bk-01);
}

.whatsapp-float:hover img {
  transform: rotate(10deg);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/****************contacto***************/
.container {
  padding: 60px 0;
  background: #f8f9fa;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.map-container {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}

.contact-section h2,
.map-container h3 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.form-container {
  max-width: 600px;
  margin: 0 auto 60px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 15px;
  background: #001f51;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #2066a0;
}

.google-maps {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #eee;
  border-radius: 5px;
}

.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  resize: vertical;
}

/** Footer **/
.footer {
  background: #020617;
  color: #e5e7eb;
  font-family: "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Glow superior */
.footer-glow {
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #22c55e);
  box-shadow: 0 0 15px #22c55e;
}

/* Contenedor */
.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 60px 20px;
}

/* logo IMG */
.footer-img {
  margin-top: 15px;
  margin-right: 10px;
  width: 100%;
  max-width: 300px;
}

/* Texto */
.footer-text {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}

.footer-col {
  text-align: center;
  align-items: center;
  justify-content: center;
}

/* Títulos */
.footer-col h3 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #ffffff;
}

/* Listas */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.footer-col ul li:hover {
  color: var(--col-tom-01);
  transform: translateX(5px);
}

.footer-col a {
  all: unset !important;
  cursor: pointer !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-col a:hover {
  color: var(--col-tom-01) !important;
}

/* Redes */
.footer-social {
  margin-top: 15px;
}

.footer-social a {
  color: #9ca3af !important;
  font-size: 18px !important;
  transition: 0.3s !important;
}

.footer-social a:hover {
  color: var(--col-tom-01) !important;
  transform: scale(1.2) !important;
}

.fas {
  padding-left: 50px;
  font-size: x-large;
}

/* Botón CTA */
.footer-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #fff;
  border-radius: 25px !important;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.footer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
}

/* Parte inferior */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #9ca3af;
}

.footer-bottom .dev {
  margin-top: 5px;
  font-size: 12px;
  color: #6b7280;
}

.dev a {
  all: unset !important;
  cursor: pointer !important;
  color: #9ca3af !important;
  font-size: 14px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.dev a:hover {
  color: var(--col-tom-01) !important;
}

/* Animación suave */
.footer-col {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.footer-col:nth-child(1) {
  animation-delay: 0.2s;
}
.footer-col:nth-child(2) {
  animation-delay: 0.4s;
}
.footer-col:nth-child(3) {
  animation-delay: 0.6s;
}
.footer-col:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== */
/* MEDIA QUERIES        */
/* ==================== */

/* Tablet Landscape / Desktop */
@media (max-width: 1024px) {
  .nav-links {
    gap: 0.5rem;
  }

  .nav-links li {
    max-width: 140px;
  }

  .nav-links a {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 120px;
  }

  .carrusel-slide {
    justify-content: center;
  }
  .item {
    width: 100%;
    max-width: 225px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .navbar {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    margin: -60px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.98);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    gap: 5px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li:hover > ul {
    display: block;
    left: 140px;
    top: 210px;
  }

  .hamburger {
    display: flex;
  }

  .phone {
    order: -1;
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  a {
    width: 100%;
    max-width: 280px;
    margin: 5px auto;
    display: block;
  }

  main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* SECCIÓN NOSOTROS: 3 columnas en tablet */
  .nosotros-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .nosotros-card {
    padding: 20px;
  }

  .nosotros-card h3 {
    font-size: 20px;
  }

  .nosotros-card p {
    font-size: 14px;
  }

  .nosotros-card img {
    height: 160px;
  }

  /* GALERÍA: 3 columnas en tablet */
  .image-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .txt-gallery {
    font-size: 13px;
    height: auto;
    min-height: 50px;
  }

  .gallery-img {
    width: 100%;
  }

  .carrusel-slide {
    gap: 12px;
    justify-content: space-around;
  }
  .item {
    width: 180px;
  }
  .item img {
    width: 180px;
    height: 240px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float img {
    width: 40px;
    height: 40px;
  }

  .hero {
    height: 55vh;
    min-height: 500px;
  }
  .hero-content {
    padding: 60px 15px;
  }

  .hero-content h1 {
    font-size: 1.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons button {
    font-size: 1rem;
    font-weight: bold;
  }

  .video-bg {
    width: 250%;
  }

  .video-bg2 {
    width: 100%;
  }

  .google-maps {
    width: 100%;
    max-width: 768px;
    height: 500px;
    display: block;
  }

  /* CAROUSEL */
  .carousel-card {
    width: 280px;
  }

  .carousel-card img {
    height: 400px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  /* NOSOTROS: 2 columnas en móvil */
  .nosotros-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .nosotros-card {
    padding: 15px;
  }

  .nosotros-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .nosotros-card p {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .nosotros-card img {
    height: 140px;
  }

  /* GALERÍA: 2 columnas en móvil */
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .txt-gallery {
    font-size: 12px;
    min-height: 45px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  /* NOSOTROS: 2 columnas en móvil pequeño (se mantiene 2 columnas) */
  .nosotros-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .nosotros-card {
    padding: 12px;
  }

  .nosotros-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .nosotros-card p {
    font-size: 11px;
    line-height: 1.4;
  }

  .nosotros-card img {
    height: 120px;
  }

  /* GALERÍA: 2 columnas en móvil pequeño */
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .txt-gallery {
    font-size: 11px;
    min-height: 40px;
  }

  .gallery-img {
    border-radius: 20px;
    margin-top: 2%;
  }

  .footer {
    text-align: center;
  }

  .footer-col ul li {
    justify-content: center;
  }

  /* CAROUSEL */

  .carousel-card {
    width: 100%;
    max-width: 350px;
  }

  .carousel-card img {
    width: 100%;
    height: 100%;
    /* height: 500px; */
    object-fit: cover;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* Móviles muy pequeños: 1 columna opcional (si quieres mantener 2 columnas quita este breakpoint) */
@media (max-width: 380px) {
  .nosotros-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nosotros-card img {
    height: auto;
    max-height: 200px;
  }
}
