﻿:root {
  --blanco: #ffffff;
  --amarillo: #febd17;
  --amarillo-hover: #e0a700;
  --negro: #111111;
  --negro-2: #1b1b1b;
  --rojo: #d62828;
  --rojo-hover: #b71f1f;
  --gris-claro: #f5f5f5;
  --gris-texto: #333333;
  --gris-suave: #f0f0f0;
  --borde: #dddddd;
  --whatsapp: #25d366;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--blanco);
  color: var(--gris-texto);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */
header {
  background: var(--negro);
  color: var(--blanco);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 4px solid var(--amarillo);
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanco);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo span {
  color: var(--blanco);
  line-height: 1;
}

.logo strong {
  color: var(--amarillo);
}

.menu {
  display: flex;
  gap: 16px;
  align-items: center;
}

.menu a {
  color: var(--blanco);
  font-weight: 700;
  font-size: 15px;
  transition: 0.25s ease;
}

.menu a:hover {
  color: var(--amarillo);
}

/* HERO PRINCIPAL CON IMAGEN 1 */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--blanco);
  padding: 80px 20px;
  background: #111111;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/1.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.45;
  filter: blur(1px);
  transform: scale(1.03);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.74) 0%,
    rgba(0, 0, 0, 0.56) 45%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--amarillo);
  color: var(--negro);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 14px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--blanco);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.hero p {
  font-size: 19px;
  margin-bottom: 28px;
  color: #f1f1f1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--negro);
  border-left: 6px solid var(--amarillo);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
}

.hero-card h2 {
  margin-bottom: 14px;
  color: var(--negro);
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  margin-bottom: 10px;
}

/* BOTONES */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 800;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--amarillo);
  color: var(--negro);
  border: 2px solid var(--amarillo);
}

.btn-primary:hover {
  background: var(--amarillo-hover);
  border-color: var(--amarillo-hover);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.25);
  color: var(--blanco);
  border: 2px solid var(--blanco);
}

.btn-secondary:hover {
  background: var(--blanco);
  color: var(--negro);
}

.btn-danger {
  background: var(--rojo);
  color: var(--blanco);
  border: 2px solid var(--rojo);
}

.btn-danger:hover {
  background: var(--rojo-hover);
  border-color: var(--rojo-hover);
}

/* SECCIONES */
.section {
  padding: 70px 20px;
}

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

.section-title {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 40px;
}

.section-title h2 {
  font-size: 34px;
  color: var(--negro);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gris-texto);
}

.bg-light {
  background: var(--gris-claro);
}

/* TARJETAS GENERALES */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-top: 5px solid var(--amarillo);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card h3 {
  color: var(--negro);
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 12px;
}

.card a {
  color: var(--rojo);
  font-weight: 800;
}

/* SECCIÓN SERVICIOS CON IMAGEN 2 */
.services-featured {
  position: relative;
  overflow: hidden;
  background: #111111;
  color: #ffffff;
}

.services-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/2.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: blur(1px);
  transform: scale(1.03);
  z-index: 0;
}

.services-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.84) 0%,
    rgba(0, 0, 0, 0.68) 45%,
    rgba(0, 0, 0, 0.84) 100%
  );
  z-index: 1;
}

.services-featured .container {
  position: relative;
  z-index: 2;
}

.section-title-light h2,
.section-title-light p {
  color: #ffffff;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-list-card {
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  border-top: 4px solid var(--amarillo);
  backdrop-filter: blur(4px);
}

.service-list-card h3 {
  margin-bottom: 14px;
}

.service-list-card ul {
  margin-left: 18px;
  margin-bottom: 18px;
}

.service-list-card li {
  margin-bottom: 8px;
}

.service-list-card a {
  color: var(--rojo);
  font-weight: 800;
}

/* PAGE HERO */
.page-hero {
  background: var(--negro);
  color: var(--blanco);
  padding: 70px 20px;
  border-bottom: 5px solid var(--amarillo);
}

.page-hero .container {
  max-width: 950px;
}

.page-hero h1 {
  font-size: 40px;
  margin-bottom: 14px;
}

/* CONTENIDO INTERNO */
.content {
  max-width: 950px;
  margin: auto;
}

.content h2 {
  font-size: 28px;
  color: var(--negro);
  margin: 28px 0 12px;
}

.content h3 {
  color: var(--rojo);
  margin: 20px 0 8px;
}

.content p {
  margin-bottom: 14px;
}

.content ul {
  margin-left: 22px;
  margin-bottom: 18px;
}

/* ALERTAS */
.notice {
  background: #fff4f4;
  border-left: 5px solid var(--rojo);
  padding: 18px;
  border-radius: 10px;
  margin: 20px 0;
}

/* CTA */
.cta {
  background: var(--negro);
  color: var(--blanco);
  text-align: center;
  padding: 64px 20px;
  border-top: 5px solid var(--amarillo);
}

.cta h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.cta p {
  max-width: 720px;
  margin: auto;
}

/* FOOTER */
footer {
  background: #000000;
  color: var(--blanco);
  padding: 34px 20px;
  border-top: 4px solid var(--rojo);
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--whatsapp);
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 1500;
}

/* TABLET */
@media screen and (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .hero-content,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .section-title h2,
  .cta h2 {
    font-size: 28px;
  }
}

/* CELULAR */
@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  header {
    position: sticky;
    top: 0;
    border-bottom: 3px solid var(--amarillo);
  }

  .nav {
    width: 100%;
    padding: 8px 12px;
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  .logo {
    font-size: 19px;
    justify-content: center;
    gap: 8px;
  }

  .logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .menu {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 4px;
  }

  .menu a {
    background: #1c1c1c;
    border: 1px solid #333;
    padding: 7px 8px;
    border-radius: 6px;
    color: #fff;
    line-height: 1;
    text-align: center;
  }

  .menu a:hover {
    background: var(--amarillo);
    color: var(--negro);
  }

  .hero {
    padding: 34px 16px 30px;
  }

  .hero::before {
    opacity: 0.38;
    filter: blur(1px);
    background-position: center center;
  }

  .hero::after {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.62) 45%,
      rgba(0, 0, 0, 0.82) 100%
    );
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .badge {
    font-size: 11px;
    padding: 7px 10px;
    margin-bottom: 14px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hero h1 {
    font-size: 27px;
    line-height: 1.18;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    text-align: center;
  }

  .hero-card {
    padding: 18px;
    border-radius: 12px;
    border-left: 0;
    border-top: 5px solid var(--amarillo);
  }

  .hero-card h2 {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .hero-card li {
    font-size: 14px;
    margin-bottom: 7px;
  }

  .section {
    padding: 38px 16px;
  }

  .section-title {
    margin-bottom: 22px;
  }

  .section-title h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .section-title p {
    font-size: 15px;
  }

  .grid,
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .service-list-card {
    padding: 18px;
    border-radius: 12px;
  }

  .card h3 {
    font-size: 19px;
  }

  .page-hero {
    padding: 46px 16px;
  }

  .page-hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .content h2 {
    font-size: 23px;
  }

  .cta {
    padding: 40px 18px;
  }

  .cta h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .cta p {
    font-size: 15px;
  }

  footer {
    padding: 24px 18px 78px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 14px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 999px;
  }
}

/* CELULAR MUY PEQUEÑO */
@media screen and (max-width: 430px) {
  .nav {
    padding: 7px 10px;
  }

  .logo {
    font-size: 18px;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .menu {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 5px;
  }

  .menu a {
    font-size: 12px;
    padding: 7px 5px;
  }

  .hero {
    padding: 30px 14px 28px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero p {
    font-size: 14.5px;
  }

  .badge {
    display: block;
    width: 100%;
  }

  .whatsapp-float {
    padding: 9px 13px;
    font-size: 13px;
  }
}
/* ==================================================
   GALERÍA INDEX - ROLLO AUTOMÁTICO
================================================== */

.gallery-section {
  position: relative;
  overflow: hidden;
  background: #111111;
  color: #ffffff;
  border-top: 5px solid var(--amarillo);
  border-bottom: 5px solid var(--rojo);
}

.gallery-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(254, 189, 23, 0.15), transparent 35%),
    radial-gradient(circle at bottom right, rgba(214, 40, 40, 0.12), transparent 35%),
    #111111;
  z-index: 0;
}

.gallery-section .container {
  position: relative;
  z-index: 2;
}

.gallery-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.gallery-marquee::before,
.gallery-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.gallery-marquee::before {
  left: 0;
  background: linear-gradient(to right, #111111, transparent);
}

.gallery-marquee::after {
  right: 0;
  background: linear-gradient(to left, #111111, transparent);
}

.gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: galleryScroll 95s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  width: 280px;
  height: 190px;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 2px solid rgba(254, 189, 23, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-item {
  position: relative;
}

.video-item::after {
  content: "VIDEO";
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--rojo);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 999px;
}

@keyframes galleryScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 768px) {
  .gallery-item {
    width: 220px;
    height: 155px;
  }

  .gallery-track {
    gap: 12px;
    animation-duration: 80s;
  }

  .gallery-marquee::before,
  .gallery-marquee::after {
    width: 45px;
  }
}
/* ==================================================
   FONDO IMAGEN 2 EN CONTENIDO DE PÁGINAS INTERNAS
================================================== */

.page-hero + .section {
  position: relative;
  overflow: hidden;
  background: #111111;
  color: #ffffff;
}

.page-hero + .section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/2.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 6;
  filter: blur(1px);
  transform: scale(1.03);
  z-index: 0;
}

.page-hero + .section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.66) 45%,
    rgba(0, 0, 0, 0.84) 100%
  );
  z-index: 1;
}

.page-hero + .section .content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  padding: 36px;
  border-radius: 16px;
  border-top: 5px solid var(--amarillo);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.page-hero + .section .content h2 {
  color: #111111;
}

.page-hero + .section .content li {
  margin-bottom: 6px;
}

@media screen and (max-width: 768px) {
  .page-hero + .section .content {
    padding: 22px;
    border-radius: 12px;
  }
}

