/* Reset y tipografía */
body {
  font-family: 'Questrial', sans-serif;
  margin: 0;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #0077cc;
}

.section {
  padding: 3rem 1rem;
  text-align: center;
  max-width: 1100px;
  margin: auto;
}

.bg-light {
  background: #ffffff;
}

/* Navbar */
.navbar {
  height: 100px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding-left: 0; }

.logo { color: #0077cc; font-size: 1.5rem; margin-left: 0; }

.nav-links { display: flex; align-items: center; gap: 25px; margin: 0 auto; padding: 0; }

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #6A0DAD;        /* Morado */
  font-weight: 600;
  font-size: 1.1rem;
  padding: 5px 0;
  transition: color 0.3s ease;

  text-transform: uppercase;}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero */

.hero h2 {
  font-size: 2.5rem;
}

.hero .cta {
  background: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  margin-top: -200px;
  display: inline-block;
  transition: background 0.3s ease;
}

.hero .cta:hover {
  background: #ffffff;
}

/* Cards */
.grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex: 1 1 250px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Galería */
.galeria {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.galeria img {
  width: 300px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}

/* Testimonios */
blockquote, .card p {
  font-style: italic;
}

/* Contacto */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

form input, form textarea, form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background: #ffffff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

form button:hover {
  background: #ffffff;
}

.whatsapp {
  display: inline-block;
  margin-top: -200px;
  background: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.whatsapp i {
  margin-right: 8px;
}

/* Footer */
footer {
  background: #ffffff;
  color: #000000;
  text-align: center;
  padding: 1rem;
}

/* Responsive */
@media(max-width: 768px) {
  .nav-links { display: flex; align-items: center; gap: 25px; margin: 0 auto; padding: 0; }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .galeria img {
    width: 100%;
    max-width: 90%;
  }
}

.logo-img {
  height: 200px;
  width: auto;
  display: block;
  margin: 0;
}

.navbar .logo { margin-left: 100px; margin-right: 40px; }

/* logo spacing overrides */
.navbar {
  height: 110px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}           /* mueve el logo más a la izquierda */
.navbar .logo { margin-left: 100px; margin-right: 40px; }     /* separa logo del menú */
.nav-links { display: flex; align-items: center; gap: 25px; margin: 0 auto; padding: 0; }                 /* espacio entre enlaces */

@media (max-width: 768px) {
  .logo-img {
  height: 58px;
  width: auto;
  display: block;
  margin: 0;
}
  .navbar .logo { margin-left: 100px; margin-right: 40px; }
  .navbar {
  height: 100px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background: #ffffff;
  border-bottom: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}
}

.nav-links li {
  list-style: none;
}

.whatsapp-btn {
  background-color: #6A0DAD;   /* MORADO */
  color: white;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 50px;         /* bordes redondeados */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;           /* separación con "Contacto" */
  transition: background 0.3s;
}

.whatsapp-btn:hover {
  background-color: #9B30FF;   /* morado más claro al hover */
}

.whatsapp-btn i {
  font-size: 18px;
}

.whatsapp-btn i {
  font-size: 18px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  left: 0;
  bottom: -5px;
  background-color: #D4AF37;  /* Dorado */
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #D4AF37;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hero {
  position: relative;
  background: url("img/muestrario.jpg") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 120px 20px;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* oscurece la imagen */
  z-index: -1;
}

/* Hero two-column layout */
.hero .hero-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}
.hero .cta-box{
  width:520px;
  max-width: 90vw;
  background:#ffffff;
  border-radius:20px;
  padding:32px;
  text-align:center;
  box-shadow:0 8px 24px rgba(0,0,0,0.18);
}
.hero .cta-box h2{
  font-size:2rem;
  font-weight:800; /* bold */
  color:#333333;
  margin:0 0 16px;
}
.hero .cta-box p{
  font-size:1.125rem;
  color:#4d4d4d;
  margin:0 0 34px;
}
.hero .cta-box a{
  display:block;
  text-decoration:none;
  font-weight:700;
  color:#ffffff;
  padding:18px 24px;
  border-radius:9999px;
  margin:14px 0;
  transition:transform .15s ease, filter .15s ease;
}
.hero .cta-box a:hover{ transform:translateY(-1px); filter:brightness(1.03); }

/* Button colors aligned with brand */
.hero .btn-whatsapp{ background:#D4AF37; }  /* dorado */
.hero .btn-phone{ background:#6A0DAD; }     /* morado */

/* Ensure hero text stays on the right and doesn't overlap */
.hero .hero-text{
  flex:1 1 auto;
  text-align: left;
  z-index:1;
  
}

.hero .cta-box a i{ margin-right:10px; }
.hero .cta-box .phone-icon{ transform: scaleX(-1); display:inline-block; }

/* Invertir orden de CTA y texto en el hero */
.hero .hero-flex {
  flex-direction: row-reverse;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,.6);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,.6);
  line-height: 1.5;
  max-width: 600px;
}

.hero .google-reviews {
  margin-top: 20px;
  max-width: 300px;
  height: auto;
  display: block;
}

.hero .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .hero .hero-text { order: 1; }
  .hero .cta-box { order: 2; }
  .hero .hero-flex {
    flex-direction: column;   /* coloca texto arriba y CTA abajo */
    align-items: center;      /* centra ambos bloques */
    gap: 24px;                /* espacio entre texto y CTA */
  }

  .hero .hero-text {
    align-items: center;      /* centra el bloque de texto */
    text-align: center;       /* centra el texto */
    max-width: 100%;          /* ocupa todo el ancho disponible */
  }

  .hero-title {
    font-size: 36px;          /* título más pequeño en pantallas estrechas */
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 16px;          /* subtítulo más pequeño */
    max-width: 90%;
  }

  .hero .google-reviews {
    max-width: 240px;         /* imagen compacta */
  }

  .hero .cta-box {
    width: 100%;              /* CTA ocupa todo el ancho */
    max-width: 480px;         /* pero no se hace gigante */
  }
}

.como-trabajamos{color:#000;font-weight:700;text-transform:uppercase;}

body, p, h1, h2, h3, h4, h5, h6, li, a, input, textarea, button { font-style: normal !important; }

.icon-servicio{
  width:200px;
  height:auto;
  display:block;
  margin:0 auto 1.5rem;
}

.icon-camion{
  width:230px;
}

/* Fondo a ancho completo solo para la sección #trabajos */

/* Forzar #trabajos a ocupar de lado a lado, anulando .section */

/* Forzar #trabajos a ocupar de lado a lado, anulando .section */

#trabajos .container {
  background: transparent; /* sin fondo blanco */
}

/* === Carrusel 3-up solo para #trabajos === */
#trabajos .trabajos-carousel{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  box-sizing:border-box;
}

#trabajos .trab-viewport{
  overflow:hidden;
  flex:1 1 auto;
}

#trabajos .trab-track{
  display:flex;
  gap:12px;
  scroll-behavior:smooth;
}

#trabajos .trab-item {
  min-width: calc((100% - 24px) / 3);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.08);
}

#trabajos .trab-item img{
  display:block;
  width:100%;
  height:400px;
  object-fit:cover;
}

/* Opcional: en pantallas estrechas puedes seguir mostrando 3 si así lo deseas;
   si en algún momento quieres 1 o 2, me avisas y lo cambio. */

#trabajos .trabajos-carousel{
  position: relative;   /* para que las flechas se ubiquen dentro */
  display: flex;
  align-items: center;
  width: 100%;
}

#trabajos .trab-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:#6A0DAD;
  color:#fff;
  border:0;
  width:38px;
  height:38px;
  border-radius:50%;
  cursor:pointer;
  font-size:18px;
  line-height:38px;
  display:grid;
  place-items:center;
  transition: background 0.3s ease, color 0.3s ease;
}

#trabajos .trab-prev{ left: 10px; }
#trabajos .trab-next{ right: 10px; }


/* Fondo a ancho completo SOLO para #trabajos, sin afectar a otras secciones ni crear overflow */




/* Fondo a ancho completo SOLO para #trabajos */
#trabajos {
  position: relative;
  z-index: 0; /* para que el ::before quede detrás */
}

#trabajos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%; /* ocupa toda la altura de la sección */
  background: #E8DAF7; /* morado muy suave */
  z-index: -1; /* por detrás del contenido */
}


#trabajos .trab-btn:hover{ background:#D4AF37; color:#fff; }


#testimonios .card {
  background:#6A0DAD;
  color:#fff;
}
#testimonios .card strong {
  color:#fff;
}


/* === Opiniones (scoped) === */
#testimonios .opiniones-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
#testimonios .op-item{ display:flex; flex-direction:column; align-items:center; }
#testimonios .card{
  background:#6A0DAD;
  color:#fff;
  border-radius:18px;
  padding:28px 24px;
  text-align:center;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
#testimonios .card p{ margin:0; }
#testimonios .test-footer{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-top:16px;
}
#testimonios .google-icon{ width:44px; height:44px; object-fit:contain; }
#testimonios .name{ color:#6A0DAD; font-weight:700; }
@media (max-width: 900px){
  #testimonios .opiniones-grid{ grid-template-columns:1fr; gap:28px; }
}


/* === CTA Extra (scoped) === */
#cta-extra{
  position: relative;
  z-index: 0;
}
#cta-extra::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width:100vw; height:100%;
  background:#E8DAF7; /* mismo fondo suave que #trabajos */
  z-index:-1;
  border-radius:0;
}
#cta-extra .cta-extra-wrap{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:40px;
  align-items:center;
}
#cta-extra .cta-extra-left h2{
  color:#000;
  margin-bottom:18px;
}
#cta-extra .cta-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
  font-weight:700;
  font-size:1.1rem;
}
#cta-extra .cta-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  text-transform: uppercase;
}

#cta-extra .cta-list li::before {
  content: "✔";
  color: #D4AF37;
  font-size: 28px;  /* más grandes */
  font-weight: bold;
  margin-right: 12px;
  display: inline-block;
  vertical-align: middle;
}

#cta-extra .cta-extra-box{
  background:#fff;
  border-radius:18px;
  padding:28px;
  box-shadow:0 12px 32px rgba(0,0,0,.12);
  text-align:center;
}
#cta-extra .cta-extra-box h3{
  margin:0 0 18px;
  color:#222;
  font-size:1.6rem;
  font-weight:800;
}
#cta-extra .cta-extra-btn{
  display:inline-block;
  padding:16px 24px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
  background:#6A0DAD; /* morado */
  color:#fff;
  margin:4px 0 14px;
  transition:filter .2s ease, transform .2s ease;
}
#cta-extra .cta-extra-btn:hover{ filter:brightness(1.05); transform:translateY(-1px); }
#cta-extra .cta-extra-note{
  margin:0;
  color:#333;
}
@media (max-width: 900px){
  #cta-extra .cta-extra-wrap{ grid-template-columns: 1fr; gap:24px; }
}

/* Align CTA-extra title to the left overriding generic section title */
#cta-extra .cta-extra-left .como-trabajamos{
  text-align: left !important;
  margin-left: 0;
}


/* === #mejores (scoped) === */
#mejores{
  position:relative;
  z-index:0;
}
#mejores::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width:100vw; height:100%;
  background:#E8DAF7; /* morado muy suave */
  z-index:-1;
}
#mejores .mejores-wrap{ display:grid; grid-template-columns: 1fr 1.15fr; gap:40px; align-items: stretch; }
#mejores .mejores-img img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:16px; box-shadow:0 10px 28px rgba(0,0,0,.12);}
#mejores .mejores-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  padding:28px;
  text-align:left;
}
#mejores .mejores-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:18px;
  font-size:1.05rem;
}
#mejores .mejores-list li{
  display:flex;
  align-items:center;
  gap:12px;
}
#mejores .mejores-list li::before{
  content:"✔";
  color:#D4AF37;
  font-weight:900;
  font-size:24px;
  margin-right:6px;
  display:inline-block;
  line-height:1;
}
@media (max-width: 980px){
  #mejores .mejores-wrap{ display:grid; grid-template-columns: 1fr 1.15fr; gap:40px; align-items: stretch; }
}


/* === Ajuste puntual SOLO para #mejores: imagen más pequeña para igualar bloque de lista === */
#mejores .mejores-img{
  height: auto;
  max-width: 560px;
  margin: 0 auto;          /* altura más contenida */
  overflow: hidden;       /* recorta el sobrante si lo hay */
  border-radius: 16px;    /* mantiene esquinas redondeadas */
}
#mejores .mejores-img img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:16px; box-shadow:0 10px 28px rgba(0,0,0,.12);}

/* En móviles dejamos que la imagen fluya */
@media (max-width: 980px){
  #mejores .mejores-img{ height: 220px; max-width: 88%; margin: 0 auto; }
  #mejores .mejores-img img{ height: 100%; width: 100%; object-fit: cover; }
}
}


/* === Ajuste SOLO para #mejores: imagen proporcional al bloque de la lista === */
#mejores .mejores-wrap{ display:grid; grid-template-columns: 1fr 1.15fr; gap:40px; align-items: stretch; }

#mejores .mejores-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

#mejores .mejores-img img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:16px; box-shadow:0 10px 28px rgba(0,0,0,.12);}


@media (max-width: 768px){
  #mejores .mejores-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #mejores .mejores-img{
    height: 260px;
    max-width: 92%;
    margin-bottom: 20px;
  }
  #mejores .mejores-card{
    width: 100%;
    max-width: 92%;
  }
}

#mejores .mejores-card{ text-transform: uppercase; }

/* === FAQ two-column collapsible === */
#faq{ background:#fff; }
#faq .faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:start; }
#faq .faq-item{ border:1px solid #e5e5e5; border-radius:6px; background:#fff; overflow:hidden; }
#faq .faq-item + .faq-item{ margin-top: 0; }
#faq .faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 1.25rem;
  display:flex;
  align-items:center;
  gap:14px;
  color:#333;
}
#faq .faq-item summary::-webkit-details-marker{ display:none; }
#faq .faq-item summary::before{ transition: transform .25s ease;
  content: "›";
  display:inline-block;
  transform: rotate(0deg);
  font-weight: 900;
  color: #D4AF37; /* dorado flecha */
  font-size: 28px;
  line-height: 1;
}
#faq .faq-item[open] summary{
  color:#1a73e8; /* azul enlace al abrir */
  border-bottom:1px solid #eaeaea;
}
#faq .faq-item[open] summary::before{
  transform: rotate(90deg);
}
#faq .faq-content{ max-height:0; overflow:hidden; transition:max-height .35s ease; padding:0 26px; line-height:1.75; color:#333; }
#faq .faq-content p{ margin:0; }
@media (max-width: 900px){
  #faq .faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:start; }
}


/* === FAQ: independent columns + smooth animation === */
#faq .faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:start; }
#faq .faq-item{ border:1px solid #e5e5e5; border-radius:6px; background:#fff; overflow:hidden; }
#faq .faq-item summary{
  list-style:none;
  cursor:pointer;
  padding:22px 26px;
  font-size:1.25rem;
  display:flex;
  align-items:center;
  gap:14px;
  color:#333;
}
#faq .faq-item summary::-webkit-details-marker{ display:none; }
#faq .faq-item summary::before{ transition: transform .25s ease;
  content:"›";
  display:inline-block;
  transform:rotate(0deg);
  font-weight:900;
  color:#D4AF37;
  font-size:28px;
  line-height:1;
}
#faq .faq-item[open] summary{ color:#1a73e8; border-bottom:1px solid #eaeaea; }
#faq .faq-item[open] summary::before{ transform:rotate(90deg); }

#faq .faq-content{ max-height:0; overflow:hidden; transition:max-height .35s ease; padding:0 26px; line-height:1.75; color:#333; }
#faq .faq-item[open] .faq-content{
  /* padding applied when opened; height handled via JS */
  padding:22px 26px 26px;
}

@media (max-width: 900px){
  #faq .faq-item{ border:1px solid #e5e5e5; border-radius:6px; background:#fff; overflow:hidden; }
}

@media (max-width: 900px){ #faq .faq-item{ border:1px solid #e5e5e5; border-radius:6px; background:#fff; overflow:hidden; } }


/* === FAQ two-column grid with smooth animation === */
#faq .faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:start; }

#faq .faq-item{ border:1px solid #e5e5e5; border-radius:6px; background:#fff; overflow:hidden; }

#faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #333;
}

#faq .faq-item summary::-webkit-details-marker { display: none; }

#faq .faq-item summary::before {
  content: "›";
  display: inline-block;
  transform: rotate(0deg);
  font-weight: 900;
  color: #D4AF37;
  font-size: 28px;
  line-height: 1;
  transition: transform .25s ease;
}

#faq .faq-item[open] summary { 
  color: #1a73e8; 
  border-bottom: 1px solid #eaeaea; 
}

#faq .faq-item[open] summary::before { 
  transform: rotate(90deg); 
}

#faq .faq-content{ max-height:0; overflow:hidden; transition:max-height .35s ease; padding:0 26px; line-height:1.75; color:#333; }

#faq .faq-item[open] .faq-content {
  padding: 22px 26px 26px;
}

@media (max-width: 900px) {
  #faq .faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:start; }
}

@media (max-width: 900px){ #faq .faq-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:30px; align-items:start; } }


/* === FAQ responsive: en pantallas estrechas 1 columna === */
@media (max-width: 768px) {
  #faq .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* === FIX: ocultar menú en móvil y mostrar hamburguesa === */
@media (max-width: 768px) {
  .nav-links {
    display: none !important;   /* fuerza oculto */
    flex-direction: column;
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px 0;
    margin: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 998;
  }
  .nav-links.active {
    display: flex !important;   /* fuerza visible cuando se activa */
  }
  .nav-links li { padding: 10px 20px; text-align: left; }
  .nav-links a { display: block; }

  .hamburger {
    display: block !important;
    position: relative;
    z-index: 999; /* por encima del menú desplegable */
  }
}



/* === FIX CRÍTICO TESTIMONIOS: evitar estiramiento por flex === */
/* La regla global .card { flex: 1 1 250px; } estira la tarjeta dentro de .op-item (flex-column).
   Aquí lo anulamos para que la altura dependa SOLO del contenido. */
#testimonios .card {
  flex: 0 0 auto !important;   /* no crecer, no encoger, altura según contenido */
  transform: none !important;  /* sin salto al hover */
  transition: none !important;
}

/* Que cada item ocupe el ancho y no centre la tarjeta con encogimiento */
#testimonios .op-item { align-items: stretch !important; }

/* Ajuste de espacio interno */
@media (max-width: 768px) {
  #testimonios .opiniones-grid { gap: 16px !important; }
  #testimonios .card { padding: 12px 14px !important; }
  #testimonios .card p { margin: 0 !important; line-height: 1.4 !important; font-size: 0.95rem !important; }
}


/* === Carrusel #trabajos: adaptación exacta 3 / 2 / 1 === */
/* Mantiene las reglas actuales y solo ajusta el ancho de cada item según el viewport */
@media (max-width: 900px) {
  #trabajos .trab-item {
    min-width: calc((100% - 12px) / 2) !important;  /* 2 ítems visibles */
  }
}
@media (max-width: 640px) {
  #trabajos .trab-item {
    min-width: 100% !important;                      /* 1 ítem visible */
  }
}



/* ===== FIXES 2025-09-13: cortes en móvil (hamburguesa, teléfono y botón WhatsApp) ===== */

/* Evitar cualquier desplazamiento/corte horizontal */
html, body { overflow-x: hidden; }

/* Ajustes de navbar en móviles: márgenes del logo más pequeños y espacio para la hamburguesa */
@media (max-width: 768px) {
  .navbar { padding: 0 12px !important; box-sizing: border-box; }
  .navbar .logo { margin-left: 0 !important; margin-right: 8px !important; }
  .logo-img { height: 150px !important; }
  .hamburger { margin-left: auto !important; }
}

/* Botón flotante WhatsApp: respetar notch/bordes redondeados y separarlo del borde */
.wa-float{
  right: max(18px, env(safe-area-inset-right)) !important;
  bottom: max(28px, env(safe-area-inset-bottom)) !important;
}

/* Fin FIXES */
