:root {
  --primary-color: #0985C8;
  --secondary-color: #2c3e50;
  --accent-color: #3498db;
  --light-color: #fef0ee;
  --dark-color: #2c3e50;
  --text-color: #333;
  --transition: all 0.3s ease;
}

/* ===== GENERAL ===== */
* { 
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}
body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6; 
  color: var(--text-color);
  overflow-x: hidden;
}

/* ===== BOTONES BASE ===== */
.btn {
  display: inline-block;
  padding: 1em 2em;
  border: 2px solid;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  margin: 0.5em;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.25s;
  --color: var(--primary-color);
  --hover: #0cb7ff; /* tono más claro del azul */
  color: var(--color);
}
.btn:hover, .btn:focus {
  border-color: var(--hover);
  color: #fff;
}

/* ===== EFECTOS BOTONES ===== */
.fill:hover, .fill:focus {
  box-shadow: inset 0 0 0 2em var(--hover);
}
.pulse:hover, .pulse:focus {
  animation: pulse 1s;
  box-shadow: 0 0 0 2em rgba(255, 255, 255, 0);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--hover); }
}
.raise:hover, .raise:focus {
  box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
  transform: translateY(-0.25em);
}
.up:hover, .up:focus {
  box-shadow: inset 0 -3.25em 0 0 var(--hover);
}
.slide:hover, .slide:focus {
  box-shadow: inset 6.5em 0 0 0 var(--hover);
}
.offset {
  box-shadow: 0.3em 0.3em 0 0 var(--color),
              inset 0.3em 0.3em 0 0 var(--color);
}
.offset:hover, .offset:focus {
  box-shadow: 0 0 0 0 var(--hover),
              inset 6em 3.5em 0 0 var(--hover);
}

/* ===== HEADER ===== */
/* Menú normal (sobre el video) */
header:not(.scrolled) .nav-links li a {
  color: white;
}

header:not(.scrolled) .nav-links li a:hover {
  color: white; /* no cambia, se mantiene blanco */
}


header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 40px;
  background: transparent;
  transition: var(--transition);
  z-index: 1000;
  height: 80px;
}
header.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  padding: 8px 40px;
  height: 70px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
  border-bottom: 4px solid #F5B027;
}

/* ===== LOGO ===== */
.logo img { 
  height: 150px;
  transition: var(--transition);
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #fff); 
}
header.scrolled .logo img {
  height: 120px;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #fff); 
}

/* ===== NAVIGATION ===== */
nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links li { position: relative; }
.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-weight: 600;
  display: block;
  transition: var(--transition);
  font-size: 1rem;
}
header.scrolled .nav-links li a {
  color: white;
}
.nav-links li:hover::after { width: 100%; }
.nav-links li::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
}
header.scrolled .nav-links li::after {
  background: #0985C8;
}
.nav-links li a:hover { 
  color: var(--primary-color);
}

/* Submenús */
.has-dropdown { position: relative; }
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: white;
  list-style: none;
  border-radius: 5px;
  min-width: 180px;
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 15px;
  color: #111 !important;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.dropdown li a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary-color) !important;
}

/* ===== USER ICON ===== */
.user-icon {
  position: relative;
  margin-left: 20px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center;
  padding: 8px 12px;
  transition: var(--transition);
}
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  list-style: none;
  border-radius: 5px;
  min-width: 160px;
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.user-dropdown li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: var(--transition);
}
.user-dropdown li a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary-color);
}
.user-icon.active .user-dropdown { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* más claro */
  z-index: -1;
}

.hero-content {
  position: relative;
  width: 100%;
  color: white;
  z-index: 1;
  padding: 0 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title span.siempre {
  color: var(--primary-color);
  background: #F4C10B;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  -webkit-text-stroke: 1px #000;
}

.hero-title span.siempre::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.hero-title span.dedicado {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 1px #000;
}

/* Carrusel de informaciones */
.hero-infos-carousel {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  margin-top: 20px;
}

.hero-infos-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 300%;
}

.hero-info {
  flex: 0 0 100%;
  padding: 25px;
  border-radius: 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  text-align: left;
}

.hero-info h3 {
  color: #F4C10B;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.hero-info p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* Indicadores del carrusel */
.hero-indicators {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-indicators .dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-indicators .dot.active {
  background: var(--primary-color);
}

/* Botón del hero */
.hero .btn {
  background: #0985C8;
  border-color: #0985C8;
  color: #fff;
}

.hero .btn:hover {
  background: #0cb7ff;
  border-color: #0cb7ff;
  color: #fff;
}


/* ===== DIVIDER ===== */
.section-divider {
  width: 100%;
  height: 10px;
  background: #0985C8;
  background-image: url("../assets/i.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.section-divider::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 5s infinite;
}
@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}
.section-divider::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(rgba(0,0,0,0.15) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.3;
  pointer-events: none;
}

/* ===== SECCIÓN TÍTULO ===== */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F4C10B;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}
.section-title i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

/* ===== CARRUSEL ===== */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.carousel-section {
  position: relative;
  background: white;
  overflow: hidden;
}
.carousel-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 15%;
  background: var(--primary-color);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
}
.carousel-section > * {
  position: relative;
  z-index: 1;
}
.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}
.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
}
.carousel-slide .text { flex: 1; padding-right: 20px; }
.carousel-slide .text h3 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #F4C10B;
}
.carousel-slide .text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 500px;
}
.carousel-slide .image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.carousel-slide .image img {
  width: 100%;
  height: 350px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.indicators {
  text-align: center;
  margin-top: 20px;
}
.indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.indicator.active {
  background: var(--primary-color);
}

/* ===== CATALOGO ===== */
.catalogo-horizontal {
  display: flex;
  width: 100%;
  min-height: 400px;
}

.catalogo-texto {
  flex: 0 0 75%;
  background: #f2f2f2;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.catalogo-texto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: var(--primary-color);
}

.catalogo-texto h3 {
  font-size: 2.5rem;        /* titulo mas grande */
  margin-bottom: 20px;
  color: #F4C10B;           /* amarillo dorado */
}

.catalogo-texto p {
  font-size: 1.1rem;
  color: #0B4B99;           /* texto azul */
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 600px;
}

/* Contenedor de botones */
.catalogo-botones {
  display: flex;            /* botones en fila */
  gap: 15px;                /* espacio entre botones */
  margin-top: 10px;
}

/* Botón principal */
.catalogo-texto .btn {
  display: inline-block;
  padding: 16px 25px;
  background: #F4C10B;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.catalogo-texto .btn:hover {
  background: #0985C8;
}

/* Boton PDF */
.catalogo-botones .pdf-btn {
  background: #870E0E !important;   /*  forzamos este color */
  color: #fff;
  font-weight: 500;
  padding: 16px 25px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.catalogo-botones .pdf-btn:hover {
  background: #B71C1C !important;   /* rojo mas claro al pasar */
}

/* Columna lateral */
.catalogo-lateral {
  flex: 0 0 25%;
  background: #F4C10B;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.catalogo-portada {
  width: 340px;
  height: 440px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  position: absolute;
  right: 70px;
  bottom: -50px;
  overflow: hidden;
  z-index: 10;
}

.portada-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .catalogo-horizontal {
    flex-direction: column;
  }

  .catalogo-texto {
    flex: 1;
    padding: 40px 20px;
    text-align: center;
  }

  .catalogo-botones {
    justify-content: center;   /* centra los botones en móviles */
    flex-wrap: wrap;           /* permite que se apilen si falta espacio */
  }

  .catalogo-lateral {
    flex: 1;
    position: static;
    padding: 20px;
  }

  .catalogo-portada {
    position: static;
    margin: 20px auto 0;
    width: 260px;
    height: 340px;
  }
}

/* ===== SERVICIOS NUEVO CON DEGRADADO ===== */
.servicios-section {
  position: relative;
  padding: 100px 40px;
  text-align: center;
  color: #fff;
  background: url("../assets/images/hero10.jpg") no-repeat center/cover;
}

.servicios-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

.servicios-section h2 {
  font-size: 2.8rem;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  color: #F4C10B;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.servicio-card {
  position: relative;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* Overlay degradado de abajo hacia arriba */
.servicio-card .overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 1;
}

/* Contenido (titulo + boton) */
.servicio-card .content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Titulo dentro del servicio ===== */
.servicio-card .content .title-bar {
  font-family: 'Poppins', sans-serif;  /* fuente personalizada */
  font-size: 1.3rem;                   /* tama?o */
  font-weight: 100;                    /* grosor */
  color: #fff;                         /* color */
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  margin: 0;
}

/* ===== Boton ===== */
.btn-servicio {
  min-width: 160px;
  text-align: center;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  background: #0985C8;    /* ?? azul por defecto */
  color: #fff !important; /* ?? letras siempre blancas */
  border: none;
  transition: all 0.3s ease;
}

/* Hover azul  mas claro */
.btn-servicio:hover {
  background: #0cb7ff;
  color: #fff !important;
}

/* Variante amarilla */
.btn-servicio.yellow {
  background: #F4C10B;
  color: #fff !important;
}
.btn-servicio.yellow:hover {
  background: #FFD633; /* ?? un amarillo mas claro */
  color: #111 !important;
}


/* ===== SOBRE NOSOTROS UNIFICADO ===== */

.sobre-section {
  position: relative;
  padding: 100px 40px;
  background: #fff;
  overflow: hidden;
}

/* Triangulo azul arriba a la derecha que llega hasta el centro */
.sobre-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px; /* altura del triangulo */
  background: #0985C8;
  clip-path: polygon(0% -200%, -100% 0, 50% 100%); /* ?? esquina derecha hasta centro */
  z-index: 0;
}

/* Triangulo amarillo abajo a la izquierda que llega hasta el centro */
.sobre-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* altura del triangulo */
  background: #F4C10B;
  clip-path: polygon(100% 0, 50% 100%, 0 100%); /* ?? esquina izquierda hasta centro */
  z-index: 0;
}

/* Asegurar contenido encima */
.sobre-section h2,
.sobre-section .sobre-container,
.sobre-section .valores-container {
  position: relative;
  z-index: 1;
}

.sobre-section h2 {
  font-size: 2.5rem;
  color: #F4C10B;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.sobre-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 80px; /* separa de los valores */
}

.sobre-texto {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}

.sobre-texto p {
  margin-bottom: 15px;
}

.sobre-imagem {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sobre-imagem img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== OBJETIVO / MISS?O / VALORES ===== */
.valores-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.valor-card {
  position: relative;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.90);
}

/* overlay oscuro sobre la imagen */
.valor-card .overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.70));
  z-index: 1;
}

/* contenido encima */
.valor-card .valor-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  color: #fff;
}

.valor-card .valor-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #F4C10B;
}

.valor-card .valor-content p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sobre-section {
    padding: 60px 20px;
  }

  .sobre-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .sobre-container {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
  }

  .sobre-imagem img {
    max-width: 100%;
  }

  .valor-card {
    height: 250px;
  }

  /* triangulos mas pequeños en moviles */
  .sobre-section::before {
    border-left: 25vw solid transparent;
    border-bottom: 25vw solid #0985C8;
  }
  .sobre-section::after {
    border-right: 25vw solid transparent;
    border-top: 25vw solid #F4C10B;
  }
}

/* ===== PROYECTOS ===== */
.proyectos-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

/* ===== Titulo solo para la seccion Proyectos ===== */
.proyectos-section .titulo-seccion {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0985C8;   /* azul */
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.proyectos-section .titulo-seccion::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #F4C10B; /* amarillo */
  margin: 8px auto 0 auto;
  border-radius: 2px;
}

.proyectos-slider {
  overflow: hidden;
  margin: 40px auto;
  max-width: 1200px;
}

.proyectos-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.proyecto-card {
  min-width: 220px;
  max-width: 220px;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: left;
  flex-shrink: 0;
}

.proyecto-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
}

.proyecto-info {
  padding: 15px;
  text-align: center; /* ?? centramos todo el contenido */
}

.proyecto-info h3 {
  font-size: 1.2rem;
  color: #0985C8;
  margin-bottom: 8px;
}

.proyecto-info p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 10px; /* espacio para el boton */
}

.btn-detalles {
  display: inline-block;
  background: #F4C10B;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-detalles:hover {
  background: #e0aa0b;
}


.proyecto-info h3 {
  font-size: 1.2rem;
  color: #0985C8;
  margin-bottom: 8px;
}

.proyecto-info p {
  font-size: 0.9rem;
  color: #444;
}

.btn-detalles {
  background: #F4C10B;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-detalles:hover {
  background: #e0aa0b;
}

/* ===== Navegacion ===== */
.proyectos-navegacion {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.nav-btn {
  background: #ddd;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: #F4C10B;
  color: #fff;
}

.proyectos-indicadores {
  display: flex;
  gap: 8px;
}

.proyectos-indicadores button {
  width: 35px;
  height: 35px;
  border: none;
  background: #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.proyectos-indicadores button.active {
  background: #0985C8;
  color: #fff;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  max-width: 700px;
  width: 90%;
  padding: 20px;
  border-radius: 0;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  margin-bottom: 15px;
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #0985C8;
}

.modal-content p {
  font-size: 1rem;
  color: #333;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}

.modal-controles {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-controles button {
  background: #0985C8;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-controles button:hover {
  background: #066aa3;
}


/* ===== SECTIONS ===== */
.section {
  padding: 100px 20px;
  border-bottom: 1px solid #eee;
}
.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
}
.section h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}
.white { background: #fff; }
.gray { background: #f9f9f9; }
.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  width: 250px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(9, 133, 200, 0.15);
  border-color: var(--primary-color);
}

/* ===== TESTIMONIOS ===== */
.testimonios-section {
  position: relative;
  padding: 100px 20px;
  background: url("../assets/images/banner1.jpg") no-repeat center/cover;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.testimonios-section .overlay {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.70);  /* aca se coloca mas oscura esta seccion */
  z-index: 0;
}

/* ===== TITULO DE SECCION (Testimonios) ===== */
.testimonios-section .titulo-seccion {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0985C8; /* Azul */
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.testimonios-section .linea-decorativa {
  width: 80px;
  height: 4px;
  background: #F4C10B; /* Amarillo */
  margin: 0 auto 50px auto;
  border-radius: 2px;
  position: relative;
  z-index: 1;
}

.slider-testimonios {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.testimonio {
  display: none;
  animation: fade 1s ease-in-out;
}

.testimonio.active {
  display: block;
}

.icono-comillas {
  font-size: 4rem;
  color: #F4C10B;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.texto-testimonio {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 20px;
}

.usuario-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.usuario-info img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F4C10B;
}

.usuario-info h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #F4C10B;
}

/* Animacion */
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .texto-testimonio {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  .icono-comillas {
    font-size: 3rem;
  }
}

/* ===== ASOCIADOS ===== */
.asociados-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.asociados-section .titulo-seccion {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0985C8;
  margin-bottom: 10px;
}

.asociados-section .linea-decorativa {
  width: 80px;
  height: 4px;
  background: #F4C10B;
  margin: 0 auto 40px auto;
  border-radius: 2px;
}

/* Carrusel */
.logos-carousel {
  overflow: hidden;
  width: 100%;
}

.logos-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll-logos 40s linear infinite; /* velocidad ajustable */
}

.logos-track img {
  width: 140px;   /* valor base */
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logos-track img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Animacion infinita */
@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .logos-track img {
    width: 120px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .logos-track img {
    width: 100px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .logos-track img {
    width: 80px;
    height: 50px;
    margin: 0 10px;
  }
}

footer {
  margin-top: 0;
}

/* ===== FOOTER TOP ===== */
.footer-top {
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)),
              url("../assets/images/galeria7.jpg") no-repeat center/cover;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

/* Marca */
.footer-top .marca h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-top .marca p {
  color: #ddd;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 250px;
}

/* titulos con linea amarilla */
.footer-top h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-top h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #F4C10B;
  margin-top: 5px;
  border-radius: 2px;
}

/* Enlaces */
.footer-top .links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-top .links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-top .links a:hover {
  color: #F4C10B;
}

/* Ubicacion con iconos */
.footer-top .ubicacion p {
  color: #ddd;
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-top .ubicacion i {
  color: #F4C10B;
  margin-right: 8px;
}

/* Redes sociales en fila */
.footer-top .social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-top .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-top .social-links a:hover {
  background: #F4C10B;
  color: #111;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
  background: rgba(0,0,0,0.90);
  text-align: center;
  padding: 15px;
  color: #ccc;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-top .marca,
  .footer-top .links,
  .footer-top .ubicacion,
  .footer-top .socials {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-top .social-links {
    justify-content: center;
  }
}


/* ===== FORMULARIOS AUTH ===== */
.auth-body {
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
              url("../assets/images/100.jpg") no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'Poppins', sans-serif;
}

.auth-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.auth-card h2 {
  margin-bottom: 20px;
  color: #0985C8;
}

.auth-card form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.auth-card form button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #F4C10B;
  border: none;
  border-radius: 6px;
  color: #111;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.auth-card form button:hover {
  background: #FFD633;
}

.auth-card p {
  margin-top: 15px;
  font-size: 0.9rem;
}

.auth-card p a {
  color: #0985C8;
  text-decoration: none;
}

.auth-card p a:hover {
  text-decoration: underline;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #0985C8;
}

.error-msg {
  background: #ffcccc;
  color: #a10000;
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}


/*************************************************************************/
.user-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-icon i {
  font-size: 1.5rem;
  color: #fff; /* Ajusta según tu header */
}

.user-name-visible {
  font-weight: 600;
  color: #fff;  /* Puedes usar #F4C10B para amarillo si quieres resaltar */
  font-size: 0.95rem;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 35px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 10px;
  min-width: 160px;
  z-index: 2000;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.user-dropdown li {
  margin: 8px 0;
}

.user-dropdown li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.user-dropdown li a:hover {
  color: #0985C8;
}

.user-icon:hover .user-dropdown {
  display: block;
}

/* ===== ADMIN PANEL ===== */
.admin-body {
  background: #f7f9fc;
  font-family: 'Poppins', sans-serif;
  padding: 30px;
}

.admin-container {
  max-width: 1000px;
  margin: auto;
}

.admin-title {
  text-align: center;
  font-size: 2rem;
  color: #0985C8;
  margin-bottom: 30px;
}

.admin-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.admin-card h2 {
  margin-bottom: 20px;
  color: #333;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.admin-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Botones */
.btn-primary {
  background: #0985C8;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.btn-primary:hover {
  background: #0cb7ff;
}

.btn-secondary {
  background: #F4C10B;
  color: #111;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn-secondary:hover {
  background: #FFD633;
}

.btn-danger {
  background: #d9534f;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.btn-danger:hover {
  background: #c9302c;
}

/* Tabla */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.admin-table th {
  background: #f0f4f8;
  color: #333;
}
.admin-table img {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #555;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.btn-secondary:hover {
  background: #333;
}

/* ===== Página de comentarios ===== */
.comentarios-page {
  background: #f4f6f9;
  padding: 30px 15px;
}

/* Formulario */
.comentarios-page form {
  max-width: 600px;
  margin: 0 auto 30px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comentarios-page form textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  resize: none;
}

.comentarios-page form button {
  margin-top: 12px;
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comentarios-page form button:hover {
  background: #0056b3;
}

/* Caja de comentario */
.comentarios-page .comentario-box {
  background: #fff;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
}

.comentarios-page .comentario-box p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.comentarios-page .usuario-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comentarios-page .usuario-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.comentarios-page .usuario-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Acciones editar/eliminar */
.comentarios-page .acciones {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.comentarios-page .acciones a {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  border: 1px solid #007bff;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.comentarios-page .acciones a:hover {
  background: #007bff;
  color: #fff;
}

/* ===== Botón eliminar admin en testimonios ===== */
.testimonios-section .acciones-comentario a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.testimonios-section .acciones-comentario a:hover {
  background: #fff;
  color: #000;
}

/* ===== Página de comentarios ===== */
.comentarios-page {
  background: #f4f6f9;
  padding: 30px 15px;
  font-family: 'Poppins', sans-serif;
}

/* Título */
.comentarios-page h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  color: #222;
}

/* Formulario */
.comentarios-page form {
  max-width: 600px;
  margin: 0 auto 30px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.comentarios-page form textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  resize: none;
}

.comentarios-page form button {
  margin-top: 12px;
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.comentarios-page form button:hover {
  background: #0056b3;
}

/* Caja de comentario */
.comentarios-page .comentario-box {
  background: #fff;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
}

.comentarios-page .comentario-box p {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.comentarios-page .usuario-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comentarios-page .usuario-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}

.comentarios-page .usuario-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Acciones editar/eliminar */
.comentarios-page .acciones {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
}

.comentarios-page .acciones a {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
  border: 1px solid #007bff;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.comentarios-page .acciones a:hover {
  background: #007bff;
  color: #fff;
}

/* Botón volver */
.comentarios-page .btn-volver {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  background: #444;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.comentarios-page .btn-volver:hover {
  background: #000;
}

#header-alt {
  background: rgba(17, 17, 17, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#header-alt .nav-links li a {
  color: #fff;
  transition: color 0.3s ease;
}

#header-alt .nav-links li a:hover {
  color: #f39c12;
}

/* ===== Usuario en el header ===== */
.user-icon {
  position: relative;
  cursor: pointer;
}

.user-icon .avatar-menu {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

/* Dropdown usuario */
.user-dropdown {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  list-style: none;
  padding: 10px 0;
}
.user-icon:hover .user-dropdown {
  display: block;
}
.user-dropdown li {
  padding: 8px 20px;
}
.user-dropdown li a {
  color: #333;
  text-decoration: none;
  display: block;
}
.user-dropdown li a:hover {
  background: #f0f0f0;
}

/* ===== Perfil Page ===== */
.perfil-page {
  padding: 140px 20px 60px;
  background: #f5f5f5;
  min-height: 100vh;
}
.perfil-container {
  max-width: 600px;
  margin: auto;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.perfil-container h2 {
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}
.perfil-form .form-group {
  margin-bottom: 15px;
}
.perfil-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.perfil-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.avatar-preview {
  display: block;
  margin-top: 10px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.alerta-exito {
  background: #e6ffed;
  color: #0a5727;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

/* Estilos base del menú */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #002b5c;
  color: #fff;
  position: relative;
}

.navbar .logo {
  font-size: 20px;
  font-weight: bold;
  color: yellow;
}

.navbar ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: yellow;
}

/* --- Responsive menú --- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    z-index: 999;
  }

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

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
  }
}

/*********************************** poductos ***************************************/
/* Banner Productos */
.banner-productos {
  position: relative;
  height: 0px;
  background: url('../assets/banner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-productos::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: rgba(0,0,0,0.9); /* Oscuro transparente */
}

.banner-overlay {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 1;
}

.banner-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #f1c40f; /* Amarillo */
}

.banner-overlay p {
  font-size: 1.2rem;
}

.productos-section {
  padding: 100px 30px;
  background: url('../assets/images/100.jpg') no-repeat center/cover;
}

.titulo-seccion {
  text-align: center;
  margin-bottom: 40px;
}
.titulo-seccion h2 {
  font-size: 2.5rem;
  color: #fff;
}
.titulo-seccion .amarillo {
  color: #f1c40f;
}
.titulo-seccion .linea-azul {
  width: 80px;
  height: 4px;
  background: #3498db;
  margin: 10px auto;
  border-radius: 2px;
}

.busqueda-form {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.busqueda-form input {
  width: 300px;
  padding: 10px;
  border: none;
  border-radius: 25px 0 0 25px;
}
.busqueda-form button {
  padding: 10px 20px;
  border: none;
  background: #3498db;
  color: #fff;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.card-producto {
  background: rgba(0,0,0,0.40);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 420px;  /* 🔹 ajusta según el contenido que quieras mostrar */
}

.card-producto img {
  width: 100%;
  height: 200px;        /* 🔹 mismo alto para todas */
  object-fit: cover;    /* 🔹 recorta sin deformar */
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-producto:hover {
  transform: translateY(-5px);
}
.card-producto img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.acciones-admin {
  margin-top: 10px;
}
.acciones-admin .btn-editar,
.acciones-admin .btn-borrar {
  padding: 6px 12px;
  border-radius: 5px;
  margin: 0 5px;
  text-decoration: none;
  font-size: 0.9rem;
}
.btn-editar { background: #f39c12; color: #fff; }
.btn-borrar { background: #e74c3c; color: #fff; }

.paginacion {
  margin-top: 30px;
  text-align: center;
}
.paginacion a, .paginacion span {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}
.paginacion .activo {
  background: #3498db;
}
.paginacion span {
  cursor: default;
}
/***************************************************productos*********************************************/

.form-section {
  background:url("../assets/images/893.jpg") no-repeat center/cover;
  padding: 110px 300px 100px 300px;
  max-width: 100%;
  margin: auto;
  color: #fff;
}

.form-producto {
  background: rgba(0,0,0,0.6);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.btn-guardar {
  width: 100%;
  padding: 12px;
  background: #3498db;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-guardar:hover {
  background: #217dbb;
}

.alerta {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(52,152,219,0.2);
  color: #f1c40f;
  text-align: center;
}


/*******************************************************para borrar si no funciona********************************/
/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  /* HEADER */
  header {
    padding: 10px 20px;
    height: 70px;
  }
  
  header.scrolled {
    padding: 8px 20px;
    height: 60px;
  }
  
  .logo img {
    height: 100px;
  }
  
  header.scrolled .logo img {
    height: 80px;
  }
  
  /* MENÚ HAMBURGUESA */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
  }
  
  /* HERO SECTION */
  .hero {
    height: 70vh;
    padding-bottom: 40px;
  }
  
  .hero-content {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  /* FORM SECTION */
  .form-section {
    padding: 80px 20px 60px 20px;
  }
  
  .form-producto {
    padding: 20px;
  }
  
  /* CATÁLOGO */
  .catalogo-horizontal {
    flex-direction: column;
  }
  
  .catalogo-texto {
    padding: 30px 20px;
  }
  
  .catalogo-texto h3 {
    font-size: 1.8rem;
  }
  
  .catalogo-botones {
    flex-direction: column;
    align-items: center;
  }
  
  .catalogo-portada {
    position: static;
    width: 250px;
    height: 320px;
    margin: 20px auto;
  }
  
  /* SERVICIOS */
  .servicios-section {
    padding: 60px 20px;
  }
  
  .servicios-section h2 {
    font-size: 2rem;
  }
  
  .servicios-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .servicio-card {
    height: 250px;
  }
  
  /* SOBRE NOSOTROS */
  .sobre-section {
    padding: 60px 20px;
  }
  
  .sobre-container {
    flex-direction: column;
  }
  
  .sobre-texto {
    font-size: 1rem;
  }
  
  .valor-card {
    height: 200px;
  }
  
  /* PROYECTOS */
  .proyectos-section {
    padding: 60px 15px;
  }
  
  .proyecto-card {
    min-width: 200px;
    max-width: 200px;
  }
  
  /* PRODUCTOS */
  .productos-section {
    padding: 80px 15px;
  }
  
  .galeria {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-producto {
    height: auto;
    min-height: 380px;
  }
  
  /* TESTIMONIOS */
  .testimonios-section {
    padding: 60px 20px;
  }
  
  .texto-testimonio {
    font-size: 1.1rem;
  }
  
  /* FOOTER */
  .footer-top {
    padding: 40px 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .footer-top .social-links {
    justify-content: center;
  }
  
  /* BOTONES GENERALES */
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .form-section {
    padding: 70px 15px 50px 15px;
  }
  
  .card-producto {
    min-height: 350px;
  }
  
  .proyecto-card {
    min-width: 180px;
    max-width: 180px;
  }
  
  .catalogo-texto h3 {
    font-size: 1.5rem;
  }
}