/* ----------------------------- */
/* ESTILOS GÓTICOS MEJORADOS */
/* ----------------------------- */

/* 1️ Variables CSS con ajustes más oscuros y dramáticos */
:root {
  --color-fondo: #0f0f0f;
  --color-negro: #1a1a1a;
  --color-negro-traslucido: rgba(0, 0, 0, 0.5);
  --color-negro-casi-solido: rgba(0, 0, 0, 0.95);
  --color-texto: #b0b0b0;
  --color-blanco: #ffffff;
  --color-rojo: #fa0707;
  --color-negro-oscuro: #000000;
  --color-gris-oscuro: #222222;
  --color-navbar: rgba(0, 0, 0, 0.8);
  --color-navbar-hover: rgba(255, 255, 255, 0.2);
  --color-glow: rgba(255, 0, 0, 0.4);
  --font-title: 'Cinzel Decorative', serif;
  --font-text: 'Crimson Text', serif;
}



/* 2️ Reset básico y fuentes */
* {
  margin: 0;
  padding: 0;
  font-family: var(--font-text);
  box-sizing: border-box;
}

body {
  background-color: var(--color-fondo);
  color: var(--color-texto);
  overflow-x: hidden;
}

/* 3️ Navbar con efecto de opacidad */
.custom-nav {
  position: fixed;
  top: 0;
  /* posición de inicio */
  left: 0;
  width: 100%;
  z-index: 999;
  transition: top 0.4s ease-in-out, background-color 0.5s ease-in-out;
  background-color: transparent;
}

.custom-nav.scrolled {
  background-color: var(--color-negro-traslucido);
}

.navbar-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  /* permite desplazarse si es necesario */
}

.navbar-nav .nav-link {
  color: var(--color-blanco);
  text-transform: uppercase;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar-nav .nav-link:hover {
  color: var(--color-rojo);
  text-shadow: 0 0 10px var(--color-glow);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--color-rojo);
  border-bottom: 2px solid var(--color-rojo);
  padding-bottom: 0.25rem;
}

@media (max-width: 991.98px) {
  .custom-nav .navbar-collapse {
    text-align: center;
    background: var(--color-negro-casi-solido);
  }
}

/* 4️ Header principal con mayor dramatismo y ajuste responsive */
header {
  margin-top: auto;
  min-height: 71vh;
  text-align: center;
  background-image: url("../images/salim-header-2.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: right center;
  filter: grayscale(100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  background-attachment: fixed; 
}



header h1 {
  font-size: 3rem;
  font-family: var(--font-title);
  color: var(--color-blanco);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--color-fondo);
  word-break: break-word;
  text-align: center;
  padding: 0 1rem;
}

header p {
  font-size: 1.1rem;
  max-width: 80%;
  margin-top: 1rem;
  color: var(--color-texto);
  text-align: center;
}

@media (max-width: 768px) {
  header {
    min-height: 60vh;
    padding: 1.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
    max-width: 90%;
  }
}

/* Logo */
.logo-nav {
  filter: invert(1) brightness(2);
  height: 100px;
  width: auto;
  max-height: 24vh;
}

/* 5 Estilos del botón de exploración aleatoria */
.btn-refresh {
  background-color: var(--color-rojo);
  color: var(--color-blanco);
  border-radius: 30px;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-rojo);
  /* Borde que coincide con el fondo */
  display: inline-block;
}

.btn-refresh:hover {
  background-color: var(--color-negro-oscuro);
  border-color: var(--color-negro-oscuro);
  box-shadow: 0 0 10px var(--color-glow);
  transform: translateY(-2px);
}


/* 6️ Botón de WhatsApp ajustado */
/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;   
  right: 20px;    
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 3px 3px 12px rgba(0,0,0,0.4);
  text-decoration: none;
  color: #fff;
}


/* 7️ Footer oscuro y elegante */
/* Footer */
.footer {
  background-color: #000; /* fondo negro */
  color: #fff;
  font-size: 0.95rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif; /* más artístico */
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

.footer-social {
  font-size: 2rem;
  margin: 0 10px;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-social:hover {
  color: #e63946; /* rojo acento */
}

.footer-link {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #aaa;
}




.footer-logo-img {
  max-height: 90px;  /* ajusta según diseño */
  width: auto;
  filter: brightness(0) invert(1); /* lo mantiene blanco si el logo es oscuro */
  transition: transform 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05); /* efecto sutil al pasar */
}




/* 8️ Animaciones para transiciones suaves */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1,
header p {
  animation: fadeIn 1.5s ease-in-out;
}




/* Hero Section */
.hero-section {
  position: relative;
  height: 70vh;
  overflow: hidden;
}


/* Contenido (firma) */
.hero-section .content {
  position: relative;
  z-index: 2;
  /* por encima del overlay */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* no bloquea clics del hero */
}

/* Firma grande, blanca y semitransparente */
.hero-section .content img.firma {
  /* Animación */
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: firmaIn 2.2s ease-out 1.2s forwards;
  will-change: transform, opacity;

  /* Tamaño (estilo dominante Woohyon) */
  width: clamp(520px, 120vw, 2400px);
  max-height: 88vh;
  height: auto;

  /* Apariencia: firma oscura que resalta con halo blanco */
  opacity: 0.85; /* un poco más visible */
  filter: 
    invert(1) brightness(2) contrast(120%) 
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.85));
  mix-blend-mode: lighten; 
}


/* Respeto a usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {
  .hero-section .content img.firma {
    animation: none;
    transform: none;
    opacity: .75;
  }
}

/* Ajustes por breakpoints (control fino) */
@media (min-width: 768px) {
  .hero-section .content img.firma {
    width: clamp(760px, 115vw, 2200px);
  }
}

@media (min-width: 1200px) {
  .hero-section .content img.firma {
    width: clamp(980px, 120vw, 2400px);
  }
}

/* Animación: termina en opacidad .75 (no 1) */
@keyframes firmaIn {
  to {
    opacity: .75;
    transform: translateY(0) scale(1);
  }
}



/* Componente Inicio */
/* Wincha de obras */
.bg-obras {
  background-color: #eae6df;  /* fondo marfil elegante */
  color: #111;                /* texto en oscuro para contraste */
}

.bg-obras .section-title {
  color: #111;
}

.bg-obras .section-subtitle {
  color: #333;
}


.wincha-obras {
  position: relative;
  background: url('/static/images/bg-hero.jpeg') center center/cover no-repeat;
  padding: 40px 0;
  z-index: 1;
}

.wincha-obras::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.4);
  /* tono oscuro translúcido */
  backdrop-filter: blur(2px);
  /* desenfoque suave */
  z-index: -1;
}

.wincha-obras .carousel-item {
  padding: 10px;
}

/* .wincha-obras .obra-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.wincha-obras .obra-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.wincha-obras .obra-card:hover {
  transform: translateY(-5px);
} */


.obra-card img {
    object-fit: cover;
    height: 280px; 
}

@media (max-width: 575.98px) {
  .obra-card img { height: 240px; }
}

.obra-card .card-body {
    padding: 1rem;
}

.obra-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.obra-card .btn {
    margin-top: .5rem;
    border-radius: 20px;
    padding: 6px 14px;
}


.wincha-obras .obra-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-blanco);
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}


/* Inicio - Sobre el Artista */
/* Intro estilo artístico */
.intro-salim {
  position: relative;
  background: url('/static/images/intro-salim.jpeg') center center/contain no-repeat;
  background-attachment: fixed; /* efecto parallax */
  padding: 80px 0;
}

.intro-salim::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.35); 
  backdrop-filter: blur(2px);
  z-index: 0;
}

.intro-salim .container {
  position: relative;
  z-index: 1;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: 'Georgia', serif; /* artístico */
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #ddd;
}

.artist-figure {
  max-height: 380px;
  filter: drop-shadow(0px 6px 12px rgba(0,0,0,0.6));
}

.intro-services li {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #f0f0f0;
  display: flex;
  align-items: center;
}

.intro-services i {
  color: #d4af37; /* dorado artístico */
  font-size: 1.2rem;
}




/* Base */
#google_translate_element {
  display: inline-block;
  min-width: 0;
}

#google_translate_element select.goog-te-combo {
  padding: .25rem .5rem;
  font-size: .9rem;
  line-height: 1.2;
  height: 32px;
}

/* Móvil: encoger y limitar ancho */
@media (max-width: 576px) {

  /* Permite que se haga pequeño sin romper la línea */
  #google_translate_element {
    transform: scale(.9);
    /* prueba .85 si necesitas más */
    transform-origin: right center;
  }

  #google_translate_element select.goog-te-combo {
    max-width: 42vw;
    /* no se come todo el ancho */
    font-size: .85rem;
    height: 30px;
  }
}


/* --- Formulario de Contacto --- */
.form-card {
    background-color: #111;
    border-radius: 12px;
    color: #fff;
    border: 1px solid #333;
}

.form-card label {
    font-weight: 600;
    color: #ddd;
}

.form-card input,
.form-card textarea {
    background-color: #1b1b1b;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
}

.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: #e63946; /* rojo de acento */
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.5);
}

/* Botón principal */
.btn-contacto {
    background-color: #e63946;
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* --- Obra Detalle --- */
.obra-detalle-container {
    padding: 2rem 0;
}

.obra-imagen {
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 80vh;
    transition: transform 0.3s ease;
}

.obra-imagen:hover {
    transform: scale(1.02);
}

.obra-info {
    padding-left: 2rem;
}

.obra-titulo {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--color-blanco);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.obra-categoria {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-rojo);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.obra-descripcion {
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-texto);
}

.obra-metadata p {
    margin-bottom: 0.5rem;
    color: var(--color-texto);
}

.obra-estilo, .obra-fecha {
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .obra-info {
        padding-left: 0;
        padding-top: 2rem;
    }

    .obra-titulo {
        font-size: 2rem;
    }
}

/* --- Inicio Magazine Style --- */
.hero-magazine {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-blanco);
}

.hero-magazine::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-magazine .container {
    position: relative;
    z-index: 2;
}

.hero-magazine .hero-title {
    font-size: 3rem;
    font-family: var(--font-title);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.hero-magazine .hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-magazine .hero-title {
        font-size: 2rem;
    }

    .hero-magazine .hero-subtitle {
        font-size: 1rem;
    }
}

/* Gallery Grid */
.gallery-grid {
    padding: 3rem 0;
}

.gallery-grid .row {
    gap: 1rem;
}

.gallery-grid .obra-card {
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: transparent;
}

.gallery-grid .obra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.gallery-grid .obra-card .card-body {
    background: rgba(0,0,0,0.8);
    color: var(--color-blanco);
    border-radius: 8px;
    padding: 1.5rem;
}

.gallery-grid .obra-card .card-title {
    color: var(--color-blanco);
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.gallery-grid .obra-card .btn {
    background-color: var(--color-rojo);
    border-color: var(--color-rojo);
    color: var(--color-blanco);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.gallery-grid .obra-card .btn:hover {
    background-color: var(--color-negro-oscuro);
    border-color: var(--color-negro-oscuro);
    transform: scale(1.05);
}

/* --- Obras Gallery Magazine Style --- */
.obras-hero {
    background: url('/static/images/bg-hero.jpeg') center center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    padding: 5rem 0;
    color: var(--color-blanco);
}

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

.obras-hero .container {
    position: relative;
    z-index: 2;
}

.obras-hero-title {
    font-size: 3.5rem;
    font-family: var(--font-title);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.obras-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto;
}

.obras-filters {
    padding: 2rem 0;
    background: var(--color-fondo);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.obras-filter-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-texto);
    text-decoration: none;
    border: 1px solid var(--color-rojo);
    border-radius: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.obras-filter-btn:hover {
    background: var(--color-rojo);
    color: var(--color-blanco);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.obras-filter-btn.active {
    background: var(--color-rojo);
    color: var(--color-blanco);
}

.obras-gallery {
    padding: 4rem 0;
    background: var(--color-fondo);
}

.obras-gallery .obra-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background: transparent;
    margin-bottom: 2rem;
}

.obras-gallery .obra-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.obras-gallery .obra-card .card-body {
    background: rgba(0,0,0,0.9);
    color: var(--color-blanco);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.obras-gallery .obra-card .card-title {
    color: var(--color-blanco);
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.obras-gallery .obra-card .btn {
    background: linear-gradient(45deg, var(--color-rojo), #ff6b6b);
    border: none;
    color: var(--color-blanco);
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.obras-gallery .obra-card .btn:hover {
    background: linear-gradient(45deg, #ff6b6b, var(--color-rojo));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .obras-hero {
        padding: 3rem 0;
    }

    .obras-hero-title {
        font-size: 2.5rem;
    }

    .obras-hero-subtitle {
        font-size: 1.1rem;
    }

    .obras-filters {
        padding: 1.5rem 0;
    }

    .obras-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .obras-gallery {
        padding: 2rem 0;
    }

    .obras-gallery .obra-card .card-title {
        font-size: 1rem;
    }
}

.btn-contacto:hover {
    background-color: #b92b38;
    transform: scale(1.02);
}

/* Info de contacto */
.contact-info {
    color: #ccc;
    font-size: 1.1rem;
}

.social-links a {
    color: #e63946;
    font-size: 1.5rem;
    transition: 0.3s;
}

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