/* ==== RESETEO ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==== NAV ==== */
nav {
  position: sticky;
  top:0;
  z-index: 1000;
  background-color: #0099D7;
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
}
nav ul li a {
  color: rgb(255, 255, 255);
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 50px;
  transition: var(--transition);
}
nav ul li a:hover {
  background: #FDD700;
  color: rgb(150, 150, 150);
  transform: scale(1.15);
  box-shadow: var(--shadow);
}
.logo {
  height: 60px;
  margin-right: 20px;
}

/* ==== CONTENEDOR PRINCIPAL ==== */
.container {
    margin: 100px auto;
    width: 100%;         /* se adapta al tamaño de pantalla */
    max-width: 1200px;   /* limita el ancho máximo */
    height: 700px;        /* altura automática según contenido */
    background: #0099D7;
    box-shadow: 0 30px 50px #dbdbdb;
    position: relative;
    overflow: hidden;    /* evita overflow horizontal */
    padding: 20px;
}


/* ==== SLIDER ==== */
.container .slide .item{
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
}
.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0,0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}
.slide .item:nth-child(3){
    left: 50%;
}
.slide .item:nth-child(4){
    left: calc(50% + 220px);
}
.slide .item:nth-child(5){
    left: calc(50% + 440px);
}
.slide .item:nth-child(n + 6){
    left: calc(50% + 660px);
    opacity: 0;
}

/* ==== TEXTO SLIDER ==== */
.item .content{
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #eee;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
}
.slide .item:nth-child(2) .content{
    display: block;
}
.content .name{
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}
.content .des{
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #3c3c3c;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
}
.content button{
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

@keyframes animate{
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* ==== BOTONES DEL SLIDER ==== */
.button{
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}
.button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}
.button button:hover{
    background: #ababab;
    color: #fff;
}

/* ==========================================================
   =====================  MODAL AMPLIADO =====================
   ========================================================== */

#modalGaleria {
    display: none;   /* SOLO ESTE */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}


/* CUADRO BLANCO — AGRANDADO AL 90% */
#modalGaleria .modal-contenido {
    width: 90vw;
    height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    overflow-y: auto;
    max-width: 1600px;
    max-height: 95vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.4);
    position: relative;
}

/* BOTÓN DE CERRAR */
#modalGaleria .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* GRID DE IMÁGENES DENTRO DEL MODAL */
#galeria-dinamica {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding-top: 40px;
}

#galeria-dinamica img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: .3s;
}

#galeria-dinamica img:hover {
    transform: scale(1.03);
}

/* ==========================================================
   RESTO DE TU CSS SIGUE IGUAL
   ========================================================== */

/* ==== SECCIÓN NOSOTROS ==== */
#nosotros {
  padding: 80px 5vw;
  background: #0099D7;
  text-align: center;
}

.container-nosotros {
  max-width: 1200px;
  margin: auto;
}

/* ... (todo tu CSS sigue igual debajo, no lo toqué) ... */


.container {
  max-width: 1200px;
  margin: auto;
}

.title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #FDD700;
  margin-top: 15px;
  margin-bottom: 1px;
}

.intro {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto 50px;
  color: #ffffff;
  line-height: 1.6;
}

/* ==== COLLAGE MODERNO ==== */
.image-collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform .4s ease, box-shadow .4s ease;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
}

/* ==== EFECTOS CHIDOS ==== */
.image-item:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.image-item:hover img {
  transform: scale(1.15);
  filter: brightness(.75);
}

/* ==== TEXTO OVERLAY ==== */
.img-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,.55);
  padding: 10px 0;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
  transform: translateY(100%);
  opacity: 0;
  transition: .4s;
}

.image-item:hover .img-title {
  transform: translateY(0);
  opacity: 1;
}

/* ==== EXTRA RESPONSIVE ==== */
@media (max-width: 480px) {
  .image-collage { gap: 10px; }
  .img-title { font-size: .9rem; }
}


/* ==== COLLAGE DE IMÁGENES ==== */
.image-collage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.image-item {
  position: relative;
  transition: transform 0.3s ease;
}

.image-item img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-item:hover {
  transform: scale(1.05);
}

/* ==== FRASES ==== */
.frases {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.frase {
  flex: 1 1 250px;
  font-size: 1.25rem;
  color: #333;
  font-style: italic;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.frase:hover {
  transform: scale(1.05);
}

/* ==== BOTONES ==== */
.cta {
  margin-top: 40px;
}

.cta a {
  text-decoration: none;
  font-size: 1.125rem;
  padding: 15px 30px;
  border-radius: 30px;
  margin: 10px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #4c9daf;
  color: white;
}

.btn-primary:hover {
  background-color: #4c9daf;
}

.btn-secondary {
  background-color: #333;
  color: white;
}

.btn-secondary:hover {
  background-color: #444;
}

/* ==== ANIMACIONES ==== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==== VIDEO DE FONDO RESPONSIVE ==== */
header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

header .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene proporción sin deformar */
  z-index: -1;
}

header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header h1 {
  position: relative;
  font-size: 3rem;
  z-index: 1;
  padding: 0 1rem;
}

header .socials {
  width: 55px;
border-radius: 100%;
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 15px;
  z-index: 2;
}

header .socials a {
  border-radius: 100%;
    background-color: #0099D7;
  color: rgb(255, 249, 71);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

header .socials a:hover {
  color: #00bfff;
}


:root {
  --primary: #0099D7; 
  --secondary: #FDD700;
  --light: #ffffff;
  --dark: #111;
  --gradient: linear-gradient(135deg, #0099D7, #FDD700);
  --shadow: 0 8px 30px rgba(0,0,0,0.2);
  --transition: all 0.4s ease;
}
* { box-sizing: border-box; margin:0; padding:0; }
body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--light);
  color: #333;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
h1,h2,h3 { margin-bottom: 20px; }
a { text-decoration: none; }
button { cursor: pointer; }
nav {
  position: sticky;
  top:0;
  z-index: 1000;
  background: var(--primary);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
}
nav ul li a {
  color: var(--light);
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 50px;
  transition: var(--transition);
}
nav ul li a:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: scale(1.15);
  box-shadow: var(--shadow);
}
.logo {
  height: 60px;
  margin-right: 20px;
}
header {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
header video {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6);
}
header .overlay {
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}
header h1 {
  position: relative;
  font-size: 3.5rem;
  text-align: center;
  color: white;
  text-shadow: 0 0 20px var(--primary);
  animation: glow 3s ease-in-out infinite alternate;
}
@keyframes glow {
  from { text-shadow: 0 0 10px var(--secondary), 0 0 20px var(--primary); }
  to { text-shadow: 0 0 30px var(--secondary), 0 0 50px var(--primary); }
}
.socials {
  position: absolute;
  top: 20px; right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.socials a {
  background: var(--light);
  border-radius: 50%;
  padding: 10px;
  color: var(--primary);
  font-size: 20px;
  transition: all 0.3s ease;
}
.socials a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: rotate(10deg) scale(1.1);
}
section {
  padding: 70px 100px;
  text-align: center;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #FDD700;
}
section p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}
.galery {
  display: flex;
  height: 30rem;
  gap: 1rem;
  margin: 50px auto;
}
.galery > div {
  position: relative;
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 4px solid rgba(0, 153, 215, 0.6);
  box-shadow: 0 0 20px rgba(0,0,0,0.15); 
  transition: all .7s cubic-bezier(.25,.4,.45,1.4);
}
.galery > div:hover { flex: 5; border: 2px solid var(--secondary); }
.galery .img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}
.galery .info {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 18px;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.galery > div:hover .img { opacity: 0; }
.galery > div:hover .info { opacity: 1; }
.logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}
.logos img {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.logos img:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 0 25px var(--secondary);
}
.cta button {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border: none;
  color: #333;
  padding: 15px 30px;
  margin: 10px;
  font-size: 18px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}
.cta button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.whatsapp {
  width: 70px;
  height: 70px;
  position: fixed;
  bottom: 20px; right: 20px;
  background: #25d366;
  color: white;
  border-radius: 100%;
  padding: 15px;
  font-size: 35px;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
  z-index: 1000;
}
.whatsapp:hover { transform: scale(1.15); }
footer {
  background: var(--gradient);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 16px;
}
footer a {
  color: var(--secondary);
  text-decoration: none;
  transition: 0.3s;
}
footer a:hover { text-decoration: underline; }
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 900px;
  width: 90%;
  border-radius: 15px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal .close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.galeria-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.galeria-modal img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  body.screenshot-blocker * {
    opacity: 0 !important;
    background: black !important;
  }
}
#screenBlocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 999999999;
    display: none;
}
#galeria{
  background-color: #0099D7;
}

#servicios{
  background-color: #0099D7;
}
#ubicacion{
   background-color: #0099D7;
}
#empresas{
   background-color: #0099D7;
}
#videos{
  color: #FDD700;
  text-align: center;
   background-color: #0099D7;
}
.contact .info{
  
  color: white;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 20px;
}


.video-card video {
  width: 80%;
  height: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
#videos h1 {
  margin: 0 auto 20px auto !important;
  text-align: center;
  font-size: 2.4rem;
  top:100%;
}

@media (max-width: 900px) {
    #galeria .container {
        height: 380px;
    }
    #galeria .container .slide .item {
        width: 120px;
        height: 180px;
    }
    #galeria .slide .item:nth-child(3){ left: 60%; }
    #galeria .slide .item:nth-child(4){ left: calc(60% + 150px); }
    #galeria .slide .item:nth-child(5){ left: calc(60% + 300px); }
}

.btn-video-full {
  background: rgba(0,0,0,0.65);
  color: white;
}


.video-full-content video {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
/* ==========================================================
   ==============   RESPONSIVE PARA SECCIONES   ==============
   ========================================================== */

/* ==== VIDEOS ==== */
#videos .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

#videos video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}



/* ==== UBICACIÓN ==== */
#ubicacion .contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
}

/* Ajustar mapa */
#ubicacion iframe {
    width: 100% !important;
    height: 300px !important;
    border-radius: 12px;
}

/* ==========================================================
   ==============   ROMPER AL 100% EN CELULAR   ==============
   ========================================================== */

@media (max-width: 600px) {

    h1, h2, h3 {
        text-align: center;
    }

    #servicios .info h1 {
        font-size: 1.3rem;
    }

    #servicios .info p {
        font-size: 1rem;
        line-height: 1.4;
    }

    #videos h1,
    #servicios h2,
    #empresas h2,
    #ubicacion h2 {
        font-size: 1.8rem;
    }

    #empresas img {
        max-height: 70px;
    }
}
