/* ==============================================================================
   PHILIPPE FOTO - HTML5 TEMPLATE STYLESHEET
   ==============================================================================
   Fácilmente editable. Modifica las variables CSS a continuación para cambiar
   los colores principales, fondos y tipografías de todo el sitio.
   ============================================================================== */

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --bg-card-hover: #171717;
  --border-color: #262626;
  --border-hover: #404040;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --accent-white: #ffffff;
  --accent-green: #10b981;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-icon svg {
  display: block;
  stroke: #ffffff;
}

.logo span {
  color: var(--text-muted);
  font-weight: 300;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: var(--accent-white);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  background: #e5e5e5;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  color: #fff;
  border-color: var(--border-hover);
}

/* Mobile Hamburger Menu */
.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Sections General */
section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.75rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
  line-height: 1.6;
}

/* Hero Section con Imagen Horizontal y Desplazamiento */
/* CÓMO CAMBIAR LA IMAGEN DE FONDO HORIZONTAL DEL HERO EN ESTE TEMPLATE:
   Para cambiar la imagen horizontal de fondo:
   1. Edita la propiedad background-image a continuación en .hero-section https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=2000&q=85'
   2. O cámbiala directamente con JS en script.js o en index.html
*/
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  border-top: none;
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.94)), url('IMG/hero_2026-05-21.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax / Scroll horizontal visual */
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-content-center {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.dot-green {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #d4d4d4;
  display: block;
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  min-height: 480px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.hero-card-box {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 900;
  display: block;
}

.stat-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  display: block;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: var(--bg-card);
}

.about-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 1rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: 1rem;
  transition: border-color 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--border-hover);
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pillar-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Gallery Section */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-white);
  color: #000;
  border-color: var(--accent-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  border-color: var(--border-hover);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-info {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.gallery-card:hover .gallery-card-info {
  opacity: 1;
}

.gallery-card-cat {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 6, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  width: 96vw;
  max-width: 1440px;
  height: 92vh;
  max-height: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.lightbox-image-wrap {
  flex: 1;
  background: #030303;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.5rem;
}

.lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: #ffffff;
  color: #000;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-nav-btn.prev {
  left: 1.25rem;
}

.lightbox-nav-btn.next {
  right: 1.25rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 20;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.lightbox-sidebar {
  width: 380px;
  min-width: 320px;
  max-width: 400px;
  padding: 2.25rem 2rem;
  border-left: 1px solid var(--border-color);
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  z-index: 10;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 30;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

/* Pricing Packages */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  background: var(--accent-white);
  color: #000;
  border-color: var(--accent-white);
}

.pricing-card.featured .pricing-price {
  color: #000;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pricing-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);

}

.pricing-card.featured .pricing-badge {
  background: #000;
  color: #fff;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.pricing-title {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-features li {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Calculator */
.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.calc-group {
  margin-bottom: 1.5rem;
}

.calc-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.calc-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.calc-btn {
  padding: 0.65rem;
  border-radius: 0.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.calc-btn.active {
  background: var(--accent-white);
  color: #000;
  border-color: var(--accent-white);
}

.calc-slider {
  width: 100%;
  accent-color: #fff;
}

.calc-summary-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.total-amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  margin: 1rem 0;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 0.85rem;
}

select.form-control option {
  background: var(--bg-card);
  color: #fff;
  padding: 0.5rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-hover);
}

/* Footer */
footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .about-grid, .calc-box, .contact-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-content {
    flex-direction: column;
  }
  .lightbox-sidebar {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-headline {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
