/*
Theme Name: IronFilm Theme
Theme URI: https://ironfilmvisual.es
Author: IronFilm Visuals
Description: Archivo de estilos principal para IronFilm Visuals
Version: 1.0.0
Text Domain: ironfilm-theme
*/
:root {
  --bg-dark: #111111;
  --bg-card: #1c1c1c;
  --text-main: #ffffff;
  --text-muted: #d4d4d4;
  --accent: #5e9e7e;
  --accent-glow: rgba(94, 158, 126, 0.4);
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --card-radius: 32px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.brand,
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  color: transparent;
}

.gradient-text {
  background: linear-gradient(to right, #7abf95, #4a7a5e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.1rem 20%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.btn-nav {
  border: 1px solid var(--text-main);
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
}

.btn-nav:hover {
  background: var(--text-main);
  color: var(--bg-dark) !important;
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   VÍDEO DE FONDO - ESTRUCTURA BASE LIMPIA (Modificado para nativo)
   ========================================================================= */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #000;
  overflow: hidden;
}

.video-container {
  width: 100%;
  height: 100%;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.6;
}

.video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* ========================================================================== */

.hero-content {
  max-width: 1000px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 50vw;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-right: 1rem;
  transition: transform 0.2s;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

/* Sections */
.section-dark {
  padding: 6rem 5%;
  background: var(--bg-dark);
}

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

.container2 {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 5%;
  display: flex;
  justify-content: center;
}

.highlight {
  color: var(--accent);
}

/* Ticker */
.trusted-ticker {
  padding: 2rem 0;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.ticker-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ticker {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.ticker-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ticker-item img {
  height: 100px !important;
  width: 150px !important;
  object-fit: contain;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 3rem;
}

.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  transition: transform 0.3s, border-color 0.3s;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-muted);
}

/* FOOH Split Layout */
.section-brand {
  background-color: var(--accent);
  color: white;
  padding: 1.5rem 5%;
  position: relative;
}

.section-brand .highlight {
  color: #111;
}

.fooh-split-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.fooh-media {
  flex: 0 0 35%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  aspect-ratio: 9/16;
  background: #000;
}

/* Modificado para soportar video nativo */
.fooh-media iframe,
.fooh-media img,
.fooh-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fooh-content {
  flex: 1;
  text-align: left;
}

.fooh-content h2 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.fooh-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
}

.btn-cta-brand {
  background-color: #e88d3e;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.btn-cta-brand2 {
  background-color: #e88d3e;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: center;
  transition: transform 0.2s;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.btn-cta-brand:hover,
.btn-cta-brand2:hover {
  transform: scale(1.05);
  background-color: #ff9f4d;
}

@media (max-width: 900px) {
  .fooh-split-layout {
    flex-direction: column;
    text-align: center;
  }

  .fooh-media {
    width: 100%;
    max-width: 400px;
    flex: none;
  }

  .fooh-content {
    text-align: center;
  }

  .fooh-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Testimonials */
.testimonials-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card-v2 {
  background-color: #2c2c2c;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.testimonial-card-v2:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 40px -10px rgba(94, 158, 126, 0.2);
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
}

.testi-info h4 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
}

.testi-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testi-stars {
  color: #e88d3e;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testi-text {
  font-style: italic;
  color: #d4d4d4;
  line-height: 1.6;
}

/* Contact */
.section-contact {
  padding: 6rem 5%;
  background: #0a0a0a;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card-green {
  display: flex;
  background-color: #558b6e;
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-image {
  flex: 1;
  min-height: 400px;
  position: relative;
  background: #444;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: 1% center;
}

.contact-form-area {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-area label {
  display: block;
  color: #1a2e22;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-form-area input,
.contact-form-area textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #ffffff;
  font-family: "Poppins", sans-serif;
  color: #333;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.contact-form-area input:focus,
.contact-form-area textarea:focus {
  outline: 2px solid #e88d3e;
}

.btn-submit-orange {
  background-color: #e88d3e;
  color: white;
  border: none;
  padding: 12px 60px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
  display: block;
  margin: 20px auto 0 auto;
}

.btn-submit-orange:hover {
  transform: scale(1.05);
  background-color: #ff9f4d;
}

/* Footer */
.main-footer {
  padding: 1.5rem 5%;
  background: #000;
  border-top: 1px solid #222;
  text-align: center;
  color: white;
}

.footer-info p {
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.footer-social {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-social a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-legal {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #888;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(94, 158, 126, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
}

.images {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5%;
}

.images2 {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 5%;
}

/* ======================================================
  SEAMLESS GALLERIES
====================================================== */
.seamless-gallery-section {
  width: 100%;
  margin-bottom: 2rem;
}

.gallery-title {
  text-align: center;
  font-size: 2.5rem;
  padding: 3rem 0;
  color: var(--text-light);
  margin: 0;
}

.seamless-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

.seamless-gallery.vertical-video-gallery {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.seamless-gallery.vertical-video-gallery .vertical-video-item {
  aspect-ratio: 9/16;
  background-color: transparent;
}

.seamless-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.seamless-item iframe,
.seamless-item video,
.seamless-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
  transition: transform 0.5s ease;
}

.seamless-item img:hover {
  transform: scale(1.05);
}

.seamless-gallery.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.seamless-gallery.photo-gallery .seamless-item {
  aspect-ratio: 2/3;
  width: calc(100% / 6);
}

.seamless-gallery.photo-gallery .seamless-item.horizontal-item {
  width: calc(200% / 6);
  aspect-ratio: 4/3;
}

/* LIGHTBOX STYLES */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10001;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100svh;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--accent);
}

.photo-gallery img {
  cursor: pointer;
}

/* SLIDER GALLERY */
.slider-gallery-section {
  position: relative;
  overflow: hidden;
}

/* SLIDER BUTTONS */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  backdrop-filter: blur(5px);
}

.slider-btn:hover {
  background-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  color: var(--bg-dark);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.slider-container {
  width: 100%;
  position: relative;
}

.slider-track {
  display: flex;
  position: relative;
  align-items: center;
}

.slider-track .seamless-item {
  height: auto;
  width: 33.33vw;
  flex: 0 0 auto;
  margin-right: 0;
  position: relative;
  aspect-ratio: 2/3;
}

.slider-track .seamless-item.horizontal-item {
  width: 66.66vw;
  aspect-ratio: 4/3;
}

/* ======================================================
   AJUSTES MÓVILES GLOBALES
   ====================================================== */
@media (max-width: 1200px) {
  .seamless-gallery.photo-gallery .seamless-item {
    width: calc(100% / 4);
  }

  .seamless-gallery.photo-gallery .seamless-item.horizontal-item {
    width: calc(200% / 4);
  }

  .slider-track .seamless-item {
    width: 16.66vw;
  }

  .slider-track .seamless-item.horizontal-item {
    width: 33.32vw;
  }
}

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

  .seamless-gallery.photo-gallery .seamless-item {
    width: calc(100% / 3);
  }

  .seamless-gallery.photo-gallery .seamless-item.horizontal-item {
    width: calc(200% / 3);
  }
}

@media (max-width: 768px) {

  /* Tipografía Hero */
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    text-align: center;
    padding-top: 20svh;
    min-height: 100svh;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    margin-right: 0;
    width: 100%;
    text-align: center;
  }

  /* MENÚ SUPERIOR */
  .glass-nav {
    padding: 1rem 5%;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    background: rgba(10, 10, 10, 0.9);
  }

  .logo {
    order: 1;
    margin: 0 auto;
  }

  .logo img {
    height: 45px !important;
  }

  .nav-links {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.95rem !important;
  }

  .glass-nav .footer-social {
    order: 3;
    margin: 0;
    padding-top: 5px;
    gap: 1.5rem;
  }

  .glass-nav .footer-social a {
    font-size: 1.2rem;
  }

  /* Al usar video nativo, ya no hace falta forzar con translate */
  .video-container video {
    object-fit: cover;
  }

  /* Ticker Logos */
  .ticker-item img {
    height: 60px !important;
  }

  /* FOOH Split Section */
  .fooh-split-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .fooh-split-layout .fooh-content {
    order: 1;
  }

  .fooh-split-layout>div:not(.fooh-content) {
    order: 2;
  }

  .images2 {
    height: 300px;
  }

  /* Formulario de Contacto */
  .contact-card-green {
    flex-direction: column;
  }

  .contact-image {
    min-height: 200px;
  }

  .contact-form-area {
    padding: 1.5rem;
  }

  /* Grids */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .testimonials-grid-new {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-legal span {
    display: none;
  }

  /* Ajustes Galerías */
  .seamless-gallery.photo-gallery .seamless-item {
    width: 50%;
  }

  .seamless-gallery.photo-gallery .seamless-item.horizontal-item {
    width: 100%;
  }

  .slider-track .seamless-item {
    width: 50vw;
  }

  .slider-track .seamless-item.horizontal-item {
    width: 100vw;
  }
}

@media (max-width: 600px) {
  .seamless-gallery {
    grid-template-columns: 1fr;
  }

  .seamless-gallery.photo-gallery .seamless-item {
    width: 100%;
  }

  .seamless-gallery.photo-gallery .seamless-item.horizontal-item {
    width: 100%;
  }

  .slider-track .seamless-item {
    width: 100vw;
  }

  .slider-track .seamless-item.horizontal-item {
    width: 100vw;
  }
}

/* EQUIPO (TEAM) PAGE STYLES */
.team-row {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  transition: transform 0.3s, border-color 0.3s;
  border: 1px solid transparent;
}

.team-row:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
  padding: 5px;
}

.team-info {
  flex: 1;
  text-align: left;
  margin-top: 0.5rem;
}

.team-info h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.team-info h4 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.team-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* EQUIPO HERO RESPONSIVE */
.hero-equipo {
  height: auto;
  min-height: 20svh;
  padding-top: 22svh;
  padding-bottom: 2rem;
}

.hero-equipo-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-equipo {
    padding-top: 15svh;
  }
  .hero-equipo-title {
    font-size: 2.2rem;
  }
  
  .team-row {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
    align-items: center; /* keep centered on mobile */
  }
  
  .team-info {
    text-align: center;
    margin-top: 0;
  }
}

/* SCROLL ONSCREEN ANIMATIONS */
.team-row.has-animation {
  opacity: 0;
}

.team-row.animate-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

.team-row.animate-in-right {
  animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(150px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}