:root {
  --fondo: #ffffff;
  --verde-oscuro: #003731;
  --turquesa: #2fe1c2;
  --gris-claro: #c0e3db;
  --negro: #1a1a1a;
  --gradiente-principal: linear-gradient(135deg, var(--verde-oscuro), #004a42);
  --gradiente-turquesa: linear-gradient(135deg, var(--turquesa), #1bc5a8);
  --sombra-suave: 0 8px 32px rgba(0, 55, 49, 0.1);
  --sombra-hover: 0 12px 40px rgba(0, 55, 49, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--fondo);
  color: var(--negro);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animación de entrada suave */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Header con efectos visuales */
header {
  background: var(--gradiente-principal);
  color: var(--turquesa);
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(47,225,194,0.1)"/></svg>');
  background-size: 50px 50px;
  animation: float 6s ease-in-out infinite;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradiente-turquesa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

header h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--turquesa);
  border-radius: 2px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

header p {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: var(--gris-claro);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Navegación con efectos hover avanzados */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--gradiente-principal);
  padding: 1rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 55, 49, 0.3);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradiente-turquesa);
}

nav a {
  color: var(--turquesa);
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  color: var(--verde-oscuro);
  background: var(--turquesa);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 225, 194, 0.4);
}

/* Secciones con animaciones de entrada */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
  animation: fadeInUp 0.8s ease-out;
}

section:nth-child(odd) {
  animation: fadeInLeft 0.8s ease-out;
}

section:nth-child(even) {
  animation: fadeInRight 0.8s ease-out;
}

/* Títulos con efectos visuales */
h2 {
  color: var(--verde-oscuro);
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradiente-turquesa);
  border-radius: 2px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--turquesa);
  border-radius: 2px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Cards con efectos 3D y hover avanzados */
.servicios,
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.card {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  color: var(--negro);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--sombra-suave);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradiente-turquesa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--sombra-hover);
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Imágenes con efectos de zoom */
.galeria img {
  width: 100%;
  border-radius: 15px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.galeria img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 55, 49, 0.3);
}

/* Listas con animaciones */
ul {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

ul li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
  transition: all 0.3s ease;
}

ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--turquesa);
  font-weight: bold;
  transition: all 0.3s ease;
}

ul li:hover {
  color: var(--verde-oscuro);
  transform: translateX(5px);
}

ul li:hover::before {
  color: var(--verde-oscuro);
  transform: scale(1.2);
}

/* Footer con gradiente */
footer {
  background: var(--gradiente-principal);
  color: var(--gris-claro);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradiente-turquesa);
}

/* Botón flotante con animación */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradiente-turquesa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(47, 225, 194, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
  z-index: 1000;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(47, 225, 194, 0.6);
}

/* Efectos de carga */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
  z-index: 1;
}

/* Responsivo mejorado */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  nav {
    gap: 1rem;
  }
  
  nav a {
    padding: 0.6rem 1rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .servicios,
  .galeria {
    grid-template-columns: 1fr;
  }
  
  .floating-btn {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2rem 1rem;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1.1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Animaciones para elementos que aparecen en scroll */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: slideInFromBottom 0.8s ease-out;
}

/* Efectos de partículas de fondo */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: var(--turquesa);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  top: 40%;
  left: 70%;
  animation-delay: 6s;
}
-width: 180px;


.hero {
  background-color: var(--verde-oscuro);
  text-align: center;
  padding: 2rem;
}

.logo-completo {
  max-width: 400px;
  width: 100%;
  height: auto;
}


/* Mejoras para móviles */
@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .hero {
    padding: 1rem;
  }
  
  .logo-completo {
    max-width: 280px;
  }
  
  .galeria {
    grid-template-columns: 1fr;
  }
}

/* Efecto hover más suave para las cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Preloader para imágenes */
.galeria img {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
}

.galeria img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #f0f0f0, #e0e0e0, #f0f0f0);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.galeria img.loaded {
  background: transparent;
}

.galeria img.loaded::after {
  display: none;
}
/* Galería estilo Pinterest/Masonry */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  grid-gap: 20px;
  padding: 20px;
}

.galeria .card {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.galeria .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Lightbox estilo Pinterest */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 10px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.cerrar {
  position: absolute;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.cerrar:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.lightbox-titulo {
  color: white;
  margin-top: 20px;
  font-size: 1.2rem;
  text-align: center;
  max-width: 80%;
}
/* Galería de videos */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 20px;
  padding: 20px;
}

.video-card {
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

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

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* Relación 16:9 */
  overflow: hidden;
  border-radius: 10px;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.play-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 25px solid var(--verde-oscuro);
}

.video-card:hover .play-button {
  background: var(--turquesa);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Lightbox para videos */
#video-lightbox .video-container {
  position: relative;
  width: 80vw;
  max-width: 1200px;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

#video-lightbox iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.video-title {
  color: white;
  margin-top: 20px;
  font-size: 1.3rem;
  text-align: center;
  max-width: 80%;
}

/* Galería de comparación */
.comparison-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 400px; /* Altura fija para todas las comparaciones */
  overflow: hidden;
}

.before-after {
  position: relative;
  width: 100%;
  height: 100%;
}

.before-after img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after img:last-child {
  width: 50%; /* Inicia mostrando mitad y mitad */
}

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: white;
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
}

.slider-handle {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--turquesa);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-handle::before,
.slider-handle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: white;
}

.slider-handle::before {
  transform: translateX(2px);
}

.slider-handle::after {
  transform: translateX(-2px);
}

.comparison-card p {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-gallery {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }
  
  .comparison-container {
    height: 300px;
  }
}

/* Estilos para la sección de contacto */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  max-width: 1000px;
}

.contact-item {
  position: relative;
  min-width: 200px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 55, 49, 0.1);
  padding: 15px;
  transition: all 0.3s ease;
  z-index: 1;
  flex: 1;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  font-size: 1.2em;
}

.phone-number, .email-address {
  font-weight: 600;
  color: var(--verde-oscuro);
}

.contact-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 20px rgba(0, 55, 49, 0.15);
  overflow: hidden;
  display: none;
  z-index: 10;
}

.contact-item:not(.email):hover .contact-menu {
  display: block;
}

.contact-item:not(.email):hover {
  border-radius: 10px 10px 0 0;
}

.menu-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  color: var(--negro);
  transition: all 0.2s ease;
  gap: 10px;
}

.menu-option:hover {
  background: var(--gris-claro);
}

.whatsapp:hover {
  color: #25D366;
}

.call:hover {
  color: var(--verde-oscuro);
}

.option-icon {
  font-size: 1.1em;
}

/* Estilo para el email */
.contact-item.email {
  cursor: pointer;
}

.contact-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-item.email:hover {
  background: var(--gris-claro);
}

.contact-item.email .contact-header {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-item {
    min-width: 160px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-item {
    width: 100%;
    max-width: 300px;
  }
}
/* redes sociales */

.contact-container {
  display: flex;
  flex-wrap: wrap; /* permite que bajen si no caben */
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
}

.contact-item {
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  width: 150px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-header {
  cursor: pointer;
  font-weight: bold;
}

.contact-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 10;
}

.contact-item:hover .contact-menu {
  display: block;
}
#redes-sociales {
  text-align: center;
  margin-top: 40px;
}

#redes-sociales h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-links a img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s, opacity 0.2s;
}

.social-links a img:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
/* marcas aleadas*/

#marcas {
  text-align: center;
  padding: 40px 20px;
  background-color: #f5f5f5; /* opcional */
}

#marcas h2 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: #222;
}

.marcas-contenedor {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.marcas-contenedor img {
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

