:root {
  --primary-color: #000;
  --text-color: #000;
  --bg-color: #fff;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Oswald', sans-serif;
  color: var(--text-color);
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease;
  min-height: 100vh;
}

/* background-attachment: fixed da problemas de renderizado en móviles (iOS Safari, Android) */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* === FONDOS POR PÁGINA === */

/* PÁGINA INDEX */
body.page-index,
body.background-hero {
  background-image: url("../Usadas/Fondo-Index/Fondo (2).jpg");
}

/* PÁGINA FOTOS - Con cambio dinámico por sección */
body.page-fotos,
body.gallery-page {
  background-image: url("../Usadas/Fondos-Fotos/fondo1.jpg");
}

body.page-fotos[data-section="trinchera"],
body.gallery-page[data-section="trinchera"] {
  background-image: url("../Usadas/Fondos-Fotos/fondotrinchera.png");
}

body.page-fotos[data-section="nacionales"],
body.gallery-page[data-section="nacionales"] {
  background-image: url("../Usadas/Fondos-Fotos/Fondonacionales.png");
}

body.page-fotos[data-section="extranjeros"],
body.gallery-page[data-section="extranjeros"] {
  background-image: url("../Usadas/Fondos-Fotos/FondoExtrangeros.png");
}

body.page-fotos[data-section="festival1"],
body.gallery-page[data-section="festival1"] {
  background-image: url("../Usadas/Fondos-Fotos/fondo-festival1.png");
}

body.page-fotos[data-section="festival2"],
body.gallery-page[data-section="festival2"] {
  background-image: url("../Usadas/Fondos-Fotos/fondo-festival2.png");
}

body.page-fotos[data-section="festival3"],
body.gallery-page[data-section="festival3"] {
  background-image: url("../Usadas/Fondos-Fotos/fondo-festival3.png");
}

body.page-fotos[data-section="festival4"],
body.gallery-page[data-section="festival4"] {
  background-image: url("../Usadas/Fondos-Fotos/fondo-festival4.png");
}

body.page-fotos[data-section="festival5"],
body.gallery-page[data-section="festival5"] {
  background-image: url("../Usadas/Fondos-Fotos/fondo-festival5.png");
}

body.page-fotos[data-section="ultimasfotos"],
body.gallery-page[data-section="ultimasfotos"] {
  background-image: url("../Usadas/Fondos-Fotos/fondo1.jpg");
}

/* PÁGINA ESTUDIO */
body.page-estudio {
  background-image: url("../Usadas/Fondo-Estudio/enhanced_FondoEstudio.png");
}

/* PÁGINA PRODUCTOS */
body.page-productos,
body.productos-page {
  background-image: url("../Usadas/Fondo-Productos/fondo-productos.png");
}

/* PÁGINA CONTACTO */
body.page-contacto,
body[data-page="contacto"] {
  background-image: url("../Usadas/Fondo-Index/Fondo (2).jpg");
}

/* SIN OVERLAY EN NINGUNA PÁGINA */
body::before {
  display: none !important;
}

body.gallery-page::before,
body.background-hero::before,
body.productos-page::before,
body[data-page]::before {
  display: none !important;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: auto;
}

/* === LOADER === */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

/* === NAVBAR LIMPIO SIN SOMBRAS === */
.navbar {
  font-family: 'Oswald', sans-serif;
  background-color: rgba(255, 255, 255, 0.75) !important;
  border-bottom: none;
  backdrop-filter: blur(10px);
  box-shadow: none !important;
}

.navbar-brand {
  color: #000 !important;
  font-weight: 700 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
  color: #000 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #000;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #000 !important;
  font-weight: 700;
}

/* === ICONOS SOCIALES === */
.navbar a[aria-label] {
  color: #000 !important;
  transition: transform 0.3s ease;
}

.navbar a[aria-label]:hover {
  transform: scale(1.15);
}

/* === SELECTOR DE IDIOMA === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Oswald', sans-serif;
}

.lang-switch .lang-divider {
  color: #ccc;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lang-btn:hover {
  color: #000;
}

.lang-btn.active-lang {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === BOTONES SIN SOMBRAS === */
.btn-dark {
  background-color: #000;
  border: 2px solid #000;
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.btn-dark:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.btn-outline-dark {
  border: 2px solid #000;
  color: #000;
  background-color: transparent;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.btn-outline-dark:hover {
  background-color: #000;
  color: #fff;
  box-shadow: none !important;
}

.btn-light {
  background-color: #fff;
  border: 2px solid #000;
  color: #000;
  font-weight: 600;
  box-shadow: none !important;
}

.btn-light:hover {
  background-color: #000;
  color: #fff;
  box-shadow: none !important;
}

/* === CARDS LIMPIAS SIN SOMBRAS === */
.card {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
  box-shadow: none !important;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: none !important;
}

.bg-dark.card {
  background-color: #000 !important;
  color: #fff !important;
  border: none;
  box-shadow: none !important;
}

/* Eliminar todas las sombras de Bootstrap */
.shadow,
.shadow-sm,
.shadow-lg,
.shadow-xl {
  box-shadow: none !important;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* === TÍTULOS === */
h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-weight: 700;
  letter-spacing: 1px;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  color: #000;
}

/* === TEXTO === */
p, .lead {
  color: #333;
  line-height: 1.7;
}

.text-muted {
  color: #666 !important;
}

/* === INPUTS === */
.form-control, .form-select {
  border: 2px solid #ddd;
  background-color: #fff;
  color: #000;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.form-control:focus, .form-select:focus {
  border-color: #000;
  box-shadow: none !important;
  background-color: #fff;
}

/* === MODAL === */
.modal-content {
  background-color: #000;
  border: none;
  box-shadow: none !important;
}

.btn-close-white {
  filter: brightness(1) invert(0);
}

/* === FOOTER === */
.site-footer {
  background-color: #000;
  color: #f5f5f5;
  margin-top: 4rem;
  font-family: 'Oswald', sans-serif;
}

.site-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-footer .footer-text {
  color: #bbb;
}

.site-footer .footer-heading {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer .footer-links {
  margin: 0;
}

.site-footer .footer-links li {
  margin-bottom: 0.6rem;
}

.site-footer .footer-links a,
.site-footer .footer-links span {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.site-footer .footer-social a {
  color: #f5f5f5;
  transition: transform 0.3s ease, color 0.3s ease;
}

.site-footer .footer-social a:hover {
  color: #fff;
  transform: scale(1.15);
}

.site-footer .footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1.5rem;
}

.site-footer .footer-copy {
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.site-footer .footer-copy a {
  color: #bbb;
  text-decoration: underline;
}

.site-footer .footer-copy a:hover {
  color: #fff;
}

/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  z-index: 1050;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 26px;
    bottom: 16px;
    right: 16px;
  }
}

/* === BANNER DE COOKIES === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  color: #f5f5f5;
  padding: 1rem 1.5rem;
  z-index: 1100;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.35);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: #ddd;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner .btn {
  white-space: nowrap;
}