﻿/* ============================================
   RESET Y VARIABLES
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #9a9a9a;
  --accent: #ffffff;
  --shadow-deep: 0 45px 100px rgba(0, 0, 0, 0.98),
                 0 30px 60px rgba(0, 0, 0, 0.90),
                 0 15px 30px rgba(0, 0, 0, 0.85),
                 0 5px 15px rgba(0, 0, 0, 0.75);
}


/* ============================================
   FONDO PARALLAX CON TU IMAGEN
============================================ */
body {
  font-family: 'Sora', sans-serif;
  background: #000;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
  min-height: 100vh;
}

.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* cambia esto */
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 10%, transparent 90%, rgba(0,0,0,0.8)),
    url('mockaroon-YqUeLG7fMr4-unsplash (1).jpg');
  background-repeat: repeat-y;
  background-size: cover; /* o 100% auto si prefieres */
  background-position: center top;
  z-index: -1;
  filter: brightness(0.45) contrast(1.1) grayscale(0.2);
}


/* ============================================
   CONTENEDOR PRINCIPAL
============================================ */
.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ============================================
   HERO
============================================ */

.hero {
  text-align: center;
  padding: 120px 20px 80px;
  margin-bottom: 100px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff1f1; /* mantiene tu tono blanco cÃ¡lido */
  text-transform: uppercase;
  margin-bottom: 20px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  /* ðŸ’¥ brillo integrado + sombra para contraste */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(255, 255, 255, 0.8),
    0 0 80px rgba(255, 255, 255, 0.6);
  mix-blend-mode: screen;
  filter: brightness(1.2) contrast(1.3);
}
body {
  font-family: 'Sora', sans-serif;
  font-size: 16px; /* baja o sube el valor */
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0a0a0a;

}

/* ============================================
   TARJETAS 3D
============================================ */
.card-3d {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 60px 50px;
  box-shadow: var(--shadow-deep),
              -30px 0 60px rgba(0, 0, 0, 0.7),
              30px 0 60px rgba(0, 0, 0, 0.7),
              0 -30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(0) translateZ(0);
}


/* ============================================
   SOBRE MÃ
============================================ */
.about-section {
  margin-bottom: 120px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content-single {
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-name {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.about-content-single .about-image {
  max-width: 700px;
  margin: 0 auto;
}


.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: 30px;
  font-weight: 600;
}

.about-text p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-image {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}


/* ============================================
   MIS TRABAJOS
============================================ */
.work-section {
  margin-bottom: 120px;
}

.work-section,
.banner-section,
.custom-gallery-section,
.social-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: 50px;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: #111; /* color de fondo por si tarda en cargar */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene proporciÃ³n y llena el espacio */
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover img {
  transform: scale(1.1);
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #ccc;
}
/* ============================================
   BANNER CON FOTO SEMITRANSPARENTE
============================================ */
.banner-section {
  margin: 100px 0;
  text-align: center;
}

.banner-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5; /* ðŸ”¥ 50% transparencia */
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.banner-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* mantiene proporciones y rellena pantalla */
  transform: translate(-50%, -50%); /* centra el vÃ­deo */
  filter: brightness(0.45) contrast(1.1) grayscale(0.2); /* igual que tu fondo */
}
/* ============================================
   REDES SOCIALES
============================================ */
.social-section {
  margin-bottom: 100px;
}

.social-card {
  text-align: center;
  padding: 50px;
}

.social-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  margin-bottom: 40px;
  font-weight: 600;
}

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

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 20px;
}

.social-link:hover {
  color: var(--accent);
  transform: translateY(-5px);
}

.social-link svg {
  width: 48px;
  height: 48px;
}

.social-link span {
  font-size: 1rem;
  font-weight: 300;
}
.Paragrafo{
  font-size: 20px ;
}
/* Fondo general de la secciÃ³n */

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
/* ============================================
   SECCIÃ“N DE GALERÃA PERSONALIZADA (COCHES, ETC.)
   Permite ajustar manualmente ancho y alto de cada imagen
============================================ */
.custom-gallery-section {
  margin-bottom: 120px; /* separa esta secciÃ³n del resto */
}

/* Contenedor de las imÃ¡genes */
.custom-gallery {
  display: flex;            /* organiza los elementos en fila */
  flex-wrap: wrap;          /* permite que bajen a otra lÃ­nea si no caben */
  gap: 25px;                /* espacio entre cada imagen */
  justify-content: center;  /* centra horizontalmente la galerÃ­a */
  align-items: center;      /* centra verticalmente el contenido */
}

/* Cada tarjeta/imagen individual */
.custom-gallery .gallery-item {
  background: rgba(255, 255, 255, 0.03); /* fondo semitransparente estilo cristal */
  border-radius: 8px;                    /* esquinas redondeadas */
  overflow: hidden;                      /* evita que la imagen sobresalga */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); /* sombra sutil */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* animaciÃ³n al pasar el ratÃ³n */
}

/* Efecto hover: se levanta un poco y brilla mÃ¡s */
.custom-gallery .gallery-item:hover {
  transform: translateY(-5px); /* se mueve hacia arriba ligeramente */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); /* sombra mÃ¡s intensa */
}

/* Ajuste visual de las imÃ¡genes dentro de los contenedores */
.custom-gallery .gallery-item img {
  width: 100%;        /* ocupa todo el ancho del contenedor */
  height: 100%;       /* ocupa toda la altura definida en el inline style */
  object-fit: cover;  /* recorta la imagen para mantener proporciÃ³n sin deformarse */
  display: block;     /* elimina espacios fantasma de imÃ¡genes inline */
}
/* ============================================
   FOOTER
============================================ */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 300;
}

/* ============================================
   ANIMACIONES
============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .container {
    padding: 40px 15px;
  }

  .hero {
    padding: 80px 15px 60px;
    margin-bottom: 60px;
  }

  .card-3d {
    padding: 40px 25px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 300px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-links {
    gap: 30px;
  }

  .about-section,
  .work-section,
  .social-section {
    margin-bottom: 80px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@keyframes oldLamp {
  /* Luz encendida normal */
  0%, 10%, 30%, 60%, 100% {
    color: #fff1f1;
    text-shadow:
      0 0 10px rgba(255, 255, 255, 1),
      0 0 20px rgba(255, 255, 255, 0.9),
      0 0 40px rgba(255, 255, 255, 0.8),
      0 0 80px rgba(255, 255, 255, 0.6);
  }

  /* âš¡ PequeÃ±os apagones irregulares */
  11%, 12%, 13%, 31%, 32%, 33%, 61%, 62% {
    color: #777;
    text-shadow: none;
  }

  /* ðŸ’¥ Chispa / sobrebrillo justo al volver */
  14%, 34%, 63% {
    color: #fff;
    text-shadow:
      0 0 20px rgba(255, 255, 255, 1),
      0 0 40px rgba(255, 255, 255, 1),
      0 0 80px rgba(255, 255, 255, 0.9),
      0 0 160px rgba(255, 255, 255, 0.8);
  }

  /* ðŸ”¦ ApagÃ³n triple rÃ¡pido (neÃ³n inestable) */
  35%, 35.3%, 35.6%, 35.9%, 36.2%, 36.5% {
    color: #444;
    text-shadow: none;
  }

  /* âš¡ Pico de luz intensa tras apagÃ³n */
  37% {
    color: #fff;
    text-shadow:
      0 0 25px rgba(255, 255, 255, 1),
      0 0 60px rgba(255, 255, 255, 1),
      0 0 120px rgba(255, 255, 255, 0.9);
  }


  /* ðŸ’¡ Se recupera lentamente */
  73%, 74% {
    color: #fff1f1;
    text-shadow:
      0 0 15px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(255, 255, 255, 0.8);
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff1f1;
  text-transform: uppercase;
  margin-bottom: 20px;

  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  animation: oldLamp 14s infinite;
}

