/* ========================================
   PALETA DE COLORES - Variables CSS
   ======================================== */
:root {
/* //respaldo de colores

  --color-principal: #f4f4f4;
  --color-secundario: #e6f4f1;
  --color-footer: #00b6ff;
  --color-acento: #e29e21;
  
  --text-light: #2c3e50;
  --text-dark: #ffffff;
*/

  /* Colores principales */
  --color-principal: #f4f4f4;
  --color-secundario: #7fd1ae;
  --color-acento: #00c6cf;
  
  /* Colores de texto */
  --text-light: #2c3e50;
  --text-dark: #ffffff;
  --youtube: #FF0000;
  
  /* Colores con transparencia */
  --color-principal-alpha: rgba(30, 126, 189, 0.95);
  --color-acento-alpha: rgba(226, 158, 33, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.8);
  --shadow-medium: rgba(0, 0, 0, 0.6);
  --border-card-general:15px;
}

/* html, body {
  width: 100%;
  overflow-x: hidden; /* Previene scroll lateral las imagenes de card estan haciendo que se rompa... }*/

html {
  min-width: 320px;
  background-color: var(--color-principal);

}
html, body {
  width: 100%;
  overflow-x: hidden;
}

.pad-prod-serv{
  padding-top: 20px;
  padding-bottom: 20px;
}

#bk {
  color: var(--text-light);
}
.text-custom-light{
  color: var(--text-light)!important;
}
.text-custom-dark{
  color: var(--text-dark)!important;
}

.text-accent {
  color: #e29e21;
}

.text-light {
  color: #ffffff;
}

.text-dark {
  color: #2c3e50;
}

/* Clases auxiliares para fondos alternos */
.bg-secondary-light {
  background-color: #e6f4f1;
}

.bg-principal-1 {
  background-color: var(--color-principal);
}

.bg-principal-2{
  background-color: var(--color-secundario); /*var(--text-light);*/
}

.bg-principal-3{
  background-color: var(--color-principal-alpha)!important;
}

.bg-footer {
  background-color: var(--color-footer);
}


body {
  position: relative;
  /* color: #2c3e50; */
 
}

/* Navbar inicial gris sólido */
#mainNavbar {
  background-color: var(--color-principal-alpha); /* gris sólido */
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
  box-shadow: none;
  color: #f4f4f4;
}

/* Navbar al hacer scroll */
#mainNavbar.scrolled {
  background-color: var(--color-principal-alpha); /* color azul sólido que quieres */
  box-shadow: 0 2px 8px var(--shadow-medium);
    color: #fff;
}

/* Links y marca inicial */
#mainNavbar .nav-link,
#mainNavbar .navbar-brand {
   color: #f4f4f4 !important; /* links oscuros sobre gris */
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: none;
}

/* Links y marca al hacer scroll */
#mainNavbar.scrolled .nav-link,
#mainNavbar.scrolled .navbar-brand {
  color: #ffffff !important; /* links claros sobre azul */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

/* Dropdown menú: color de fondo y links */
#mainNavbar .dropdown-menu {
  background-color: #ffffff; /* fondo del dropdown */
}

#mainNavbar .dropdown-item {
  color: #222222 !important;
}

#mainNavbar .dropdown-item:hover {
  color: #ffffff !important;
  background-color: #1e7ebd; /* mismo azul de scroll */
}




/* Ajuste general de carousel caption */
.carousel-caption h1,
.carousel-caption h2 {
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: 1.25rem;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}


/* Fija un alto único para el carousel */
.carousel-inner {
  width: 100%;
  height: 100vh;
}

/* Cada item ocupa el mismo alto */
.carousel-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Imágenes dentro del carousel */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.container-carousel-mod {
  max-width: 80%;
  padding-left: 0px;
  padding-right: 0px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Links con color de acento */
a.Lk {
  text-decoration: none;
  color: #e29e21;
}

.Lk:link {
  text-decoration: none;
  color: #e29e21;
}

.Lk:hover {
  color: #00b6ff;
  text-decoration: none;
}

.pad-std {
  padding-top: 70px;
  padding-bottom: 70px
}

.no-li {
  list-style: none;
}

.letter-contact {
  font-size: 22px;
}

img.camara-icon {
  max-height: 350px;
  max-width: 450px;
  min-width: 350px;
  min-height: 300px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
}
.font-1 {
  font-size: 30px;
}

.font-2 {
  font-size: 25px;
}

.font-3 {
  font-size: 22px;
}

.font-4 {
  font-size: 19px;
}


/* ==========================
   RESPONSIVE MEDIA QUERIES
   ========================== */

/* Para tablets y pantallas medianas */

@media (max-width: 1000px) and (min-width: 576px) {

  /* Hacer que las filas mantengan flex-wrap */
  .row.pad-prod-serv {
    flex-wrap: wrap;
  }

  /* Columnas: imagen y texto */
  .row.pad-prod-serv > .col-sm-5,
  .row.pad-prod-serv > .col-sm-7 {
    width: 100%;       /* Toman todo el ancho */
    max-width: 100%;   /* Evita que se sobrepongan */
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Centrar contenido */
    margin-bottom: 20px;
  }

  /* Imagen */
  img.camara-icon {
    max-width: 80%;    /* Ajusta según convenga */
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }

  /* Ajuste del texto */
  .row.pad-prod-serv h2.font-1 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .row.pad-prod-serv p.font-3 {
    font-size: 15px;
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;   /* Evita que se salga */
  }

  /* Botón */
  .row.pad-prod-serv .btn {
    display: block;
    margin: 10px auto 0 auto;
  }
}

/* Pantallas pequeñas (teléfonos) */
@media (max-width: 575px) {
  img.camara-icon {
    max-height: 350px;
    max-width: 420px;
    min-height: 250px;
    min-width: 250px;
    margin: 0 auto;
    display: block;
  }
  a.icono-cam { display: block; }

  .tit-1, .tit-2 { font-size: 18px; }
  p { font-size: 16px; }

  .font-1 { font-size: 22px; }
  .font-2 { font-size: 19px; }
  .font-3 { font-size: 16px; }
  .font-4 { font-size: 13px; }

  .font-thead, .font-tbody { font-size: 8px; padding-left:0; padding-right:2px; }

  .cotizar-card { max-width: 90%; padding: 1.5rem; }
}

/* Pantallas muy pequeñas */
@media (max-width: 450px) {
  img.camara-icon {
    max-height: 300px;
    max-width: 350px;
    min-height: 220px;
    min-width: 220px;
    margin: 0 auto;
    display: block;
  }
  a.icono-cam { display: block; }

  .tit-1, .tit-2 { font-size: 18px; }
  p { font-size: 16px; }

  .font-1 { font-size: 22px; }
  .font-2 { font-size: 19px; }
  .font-3 { font-size: 16px; }
  .font-4 { font-size: 13px; }

  .font-thead, .font-tbody { font-size: 6px; padding-left:0; padding-right:2px; }

  .container { width: 100%; padding-left: 6px; padding-right:6px; margin:0 auto; }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
   img.camara-icon {
    max-height: 280px;
    max-width: 320px;
    min-height: 200px;
    min-width: 200px;
    margin: 0 auto;
    display: block;
  }
  .carousel-caption h1,
  .carousel-caption h2 { font-size: 1.5rem; }

  .carousel-caption p { font-size: 0.9rem; }

  .container-carousel-mod {
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Extra pequeños / pantallas minúsculas */
@media (max-width: 364px) {
  a.icono-cam { display: none; }

 img.camara-icon {
    max-height: 220px;
    max-width: 300px;
    min-height: 190px;
    min-width: 180px;
    margin: 0 auto;
    display: block;
  }

  .tit-1, .tit-2 { font-size: 25px; }

  .font-1 { font-size: 19px; }
  .font-2 { font-size: 16px; }
  .font-3 { font-size: 13px; }
  .font-4 { font-size: 10px; }

  .font-thead, .font-tbody { font-size: 6px; padding-left:0; padding-right:2px; }
}


/* Sección productos con fondo secundario */
#productos {
  background: url(../img/parallax2.jpg);
  background-repeat: repeat-x;
  background-attachment: fixed;
  background-color: #e6f4f1;
}

/* Formulario */
textarea {
  resize: none;
  width: 500px;
  height: 200px;
  background: transparent;
  border: 2px solid #e29e21;
  cursor: pointer;
  margin-left: -100px;
  border-radius: 2px;
  color: #2c3e50;
  font-family: 'Exo', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 6px;
  margin-top: 20px;
}

.form {
  height: 400px;
  width: 500px;
  display: none;
  transform: translate(-50, -50);
  background-color: rgba(30, 126, 189, 0.95);
  margin-left: 50px;
  left: 500px;
  top: 150px;
  position: fixed;
  color: #ffffff;
}

.car {
  max-height: 800px;
  min-height: 400px;
}

.soom {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.soom-1 {
  text-shadow: 2px 2px 5px rgba(30, 126, 189, 0.8);
}

.conta {
  margin-top: -50px;
}

.card-top-img {
  width: 100%;                /* Se adapta al contenedor */
  max-width: 400px;           /* Límite visual opcional */
  height: auto;               /* Se ajusta automáticamente */
  aspect-ratio: 4 / 3;        /* Mantiene proporción */
  overflow: hidden;
  margin: 0 auto;             /* Centrado horizontal */
  border-radius: var(--border-card-general);
}
img.img-ins-a {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border: 2px solid #e29e21;
  transform: scale(1);
  transition: transform 0.5s, border-color 0.3s;
  display: block;             /* Evita pequeños saltos por inline-block */
}
.img-ins-a:hover {
  transform: scale(1.1);
  border-color: var(--youtube);
}


.container, .row, .card {
  max-width: 100%;
  overflow: hidden;
}


.youtube {
  height: 50px;
  width: 80px;
  border-radius: 22%;
  position: relative;
  cursor: pointer;
  animation: infinite shake 1s;
  animation-timing-function: ease;
}

@keyframes shake {
  0% {
    box-shadow: 2px 5px 17px rgba(226, 158, 33, 0.4);
    left: -3px;
  }

  50% {
    box-shadow: 2px 5px 17px rgba(226, 158, 33, 0.4);
    left: 3px;
  }

  100% {
    box-shadow: 2px 5px 17px rgba(226, 158, 33, 0.4);
    left: -3px;
  }
}

figure.play {
  position: absolute;
  display: inline-block;
}

.play {
  background-color: transparent;
  height: 20px;
  width: 20px;
  position: absolute;
  top: 20%;
  left: 40%;
  border-left: 25px solid white;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.redes {
  height: 50px;
  width: 80px;
  background-color: var(--youtube);
  border-radius: 22%;
}

.img-ins-a:hover {
  transform: scale(1.2);
  border-color: var(--youtube);
}

.img-ins-a:active {
  transform: scale(1.2);
}

.swiper {
  width: 600px;
  height: 300px;
}

.border-img-card{
  border-radius: var(--border-card-general);
box-shadow: 12px 0px 5px 0px rgba(0,0,0,0.07);
-webkit-box-shadow: 12px 0px 5px 0px rgba(0,0,0,0.07);
-moz-box-shadow: 12px 0px 5px 0px rgba(0,0,0,0.07);
}










/* ==== TARJETA DEL FORMULARIO ==== */
.cotizar-card {
  max-width: 500px;
  background-color: var(--color-principal);
  border-radius: var(--border-card-general);  
  padding: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* ==== CAMPOS PERSONALIZADOS ==== */
.form-control-custom {
  border: 1px solid rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
  border-radius: var(--border-card-general);                /* borde simétrico */
  padding: 0.8rem 1rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

textarea.form-control-custom {
  border-radius: var(--border-card-general/2);              /* mismo radio que inputs */
  resize: none;
}

.form-control-custom:focus {
  border-color: var(--color-secundario);
  box-shadow: 0 0 8px rgba(127, 209, 174, 0.5);
  outline: none;
}


/* Tarjeta con efecto flip */
.cotizar-card {
    max-width: 500px;
    background-color: var(--color-principal);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    position: relative;
}

/* Formulario normal */
form#cotizarForm {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Campos de input */
.form-control-custom {
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease-in-out;
}
.form-control-custom:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background-color: rgba(255,255,255,0.12);
    box-shadow: none;
}

/* Botón pegado al fondo */
.btn-custom {
    margin-top: auto; /* empuja al final */
    background-color: #ffffff;
    color: var(--text-light);
    border: none;
    border-radius: 7px;
    font-weight: 600;
    padding: 10px 0;
    transition: background-color 0.25s ease, transform 0.15s ease;
}
.btn-custom:hover {
    background-color: var(--color-principal-alpha);
    color: var(--color-principal);
    transform: translateY(-1px);
}


/* ==== SOMBRA DE LA TARJETA ==== */
.shadow-custom {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}


.table-custom {
  display: flex;
  justify-content: center;
  width: 80%;
}

.responsive-img {
    width: 100%;
    height: auto;        /* Mantiene proporción */
    max-width: 100%;
    object-fit: contain; /* Evita recortes y mantiene la sombra */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* sombra */
    border-radius: var(--border-card-general);
}

/* Evita que el flex corte las sombras */
.row > [class*='col-'] {
    overflow: visible;
}
