/* ==========================================================================
   DISEÑO DE SISTEMA - HOJA DE ESTILOS PRINCIPAL
   Proyecto: Plantilla para Sitio Web de Fotógrafo Profesional
   Desarrollador: Antigravity AI
   ========================================================================== */

/* --- 1. CONFIGURACIÓN DE TIPOGRAFÍA Y VARIABLES --- */
/* Importación de la fuente Montserrat desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Paleta de Colores (Estilo Premium Dark / Minimalista) */
  --color-bg: #0d0d0d;           /* Fondo principal ultra oscuro */
  --color-text-primary: #ffffff;  /* Texto principal blanco puro */
  --color-text-secondary: #a6a6a6;/* Texto secundario gris suave */
  --color-accent: #c5a880;        /* Acento dorado cálido / champaña */
  --color-overlay: rgba(0, 0, 0, 0.45); /* Overlay para contraste sobre imágenes */

  /* Tipografías */
  --font-main: 'Montserrat', sans-serif;

  /* Espaciados y Layout (Aire y Respiro) */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 100px;
  --container-padding: 0 8%;      /* Margen lateral uniforme para consistencia */
}

/* --- 2. RESET Y ESTILOS GENERALES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Bloqueo de scroll cuando el menú responsivo está abierto */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 3. LOGO Y ELEMENTOS SVG --- */
/* Filtro CSS para poder cambiar el color de los iconos SVG en los hovers */
.svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

/* --- 4. ESTRUCTURA DEL HEADER (NAVEGACIÓN) --- */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--container-padding);
  z-index: 100; /* Asegura que el header flote sobre la imagen del Hero */
}

/* Ocultar botón de menú hamburguesa por defecto en escritorio */
.menu-toggle {
  display: none;
}


/* Contenedor del Logo */
.logo-container a {
  display: block;
}

.logo-img {
  height: 40px; /* Tamaño calibrado visualmente para escritorio */
  width: auto;
  filter: brightness(0) invert(1); /* Convierte el logo a blanco para contraste en fondo oscuro */
  transition: var(--transition-smooth);
}

.logo-img:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px; /* Espacio generoso entre enlaces */
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em; /* Espaciado premium para legibilidad */
  color: var(--color-text-primary);
  position: relative;
  padding: 8px 0;
}

/* Animación sutil de línea deslizante para enlaces */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-accent);
}

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

/* --- ESTADOS DE SECCIÓN ACTIVA Y ANULACIÓN DE HOVER --- */
/* Mantiene la palabra de la sección actual con color dorado y subrayada por defecto */
.nav-link.active {
  color: var(--color-accent);
}

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

/* Efecto de anulación: al pasar el mouse por encima del menú, apagamos temporalmente el estilo de la pestaña activa */
.nav-menu:hover .nav-link.active {
  color: var(--color-text-primary);
}

.nav-menu:hover .nav-link.active::after {
  width: 0;
}

/* Forzado prioritario: encendemos de nuevo la pestaña sobre la cual está físicamente el cursor (incluyendo la activa) */
.nav-menu .nav-link:hover {
  color: var(--color-accent) !important;
}

.nav-menu .nav-link:hover::after {
  width: 100% !important;
}

/* --- 5. SECCIÓN HERO (PRINCIPAL) --- */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: flex-end; /* Alineamos el contenido en la parte inferior para un look editorial */
  justify-content: flex-start;
  padding: var(--container-padding);
  padding-bottom: 10%; /* Espacio inferior generoso para que el diseño respire */
  background-color: #000000; /* Fondo negro puro */
  overflow: hidden; /* Evita desbordamiento debido a animaciones de escala */
}

/* Pseudo-elemento para la imagen de fondo animada (fade out/in + zoom suave) */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/image.webp'); /* Ruta a la imagen optimizada */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  opacity: 0.45; /* Opacidad inicial reducida a 0.45 para mejor legibilidad */
  transform-origin: center center; /* Asegura que el zoom ocurra desde el centro geométrico */
  animation: bgFadeInOut 18s ease-in-out infinite; /* Animación de desvanecimiento continuo */
}

/* Pseudo-elemento para el overlay degradado oscuro (estático para asegurar contraste) */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 2;
}

/* Contenedor del contenido del Hero */
.hero-content {
  position: relative;
  z-index: 10; /* Asegura estar por encima del overlay de fondo */
  max-width: 650px; /* Ancho máximo para mantener un bloque de lectura cómodo */
  text-align: left; /* Alineación a la izquierda (look editorial) */
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Categoría / Subtítulo superior */
.hero-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em; /* Espacio extra amplio premium */
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}

/* Título Principal (Headline) */
.hero-title {
  font-size: 48px;
  font-weight: 300; /* Estilo ligero / minimalista */
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.hero-title span {
  font-weight: 600; /* Énfasis en palabras clave */
}

/* Descripción del Hero */
.hero-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: #cccccc; /* Gris plateado medio-claro, ligeramente más atenuado que #e0e0e0 */
  margin-bottom: 40px; /* Margen inferior para separar del botón */
  max-width: 500px; /* Ancho máximo para que las líneas de texto sean legibles */
}

/* Botón de Acción Principal (CTA) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--color-text-primary);
  background-color: transparent;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

.hero-cta:hover {
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  transform: translateY(-2px); /* Micro-interacción de elevación */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* --- 6. SIDEBAR FLOTANTE DE REDES Y UBICACIÓN --- */
.social-sidebar {
  position: absolute;
  right: 5%; /* Colocado al lado derecho */
  bottom: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 10;
  animation: fadeInRight 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.social-icon-link {
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

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

/* Línea vertical divisoria en el sidebar */
.sidebar-divider {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 8px 0;
}

/* Indicador de Origen en el sidebar */
.location-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.location-sidebar:hover {
  opacity: 1;
}

.flag-icon-sidebar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition-smooth);
}

.location-sidebar:hover .flag-icon-sidebar {
  border-color: var(--color-accent);
  transform: scale(1.08);
}

.location-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
}

/* --- 7. ANIMACIONES (MICRO-INTERACCIONES Y CARGA) --- */
/* Animación de respiración: desvanecimiento sutil y zoom estrictamente céntrico */
@keyframes bgFadeInOut {
  0%, 100% {
    opacity: 0.45; /* Opacidad máxima limitada a 0.45 para no comprometer el contraste */
    transform: scale(1);
  }
  50% {
    opacity: 0.22; /* Se atenúa sutilmente sin perder la silueta de la fotografía */
    transform: scale(1.08); /* Zoom del 8% centrado (perceptible y elegante) */
  }
}

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

@keyframes fadeInUpMobile {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

/* --- 8. SOPORTE DE ALTAS RESOLUCIONES (DESKTOP PREMIUM) --- */
@media (min-width: 1600px) {
  .hero-title {
    font-size: 58px;
  }
  .hero-description {
    font-size: 17px;
    max-width: 580px;
  }
}

/* --- 9. ESTILOS DE PÁGINAS SECUNDARIAS (SERVICIOS Y CONTACTO) --- */
/* Contenedor principal de subpáginas (con padding superior para librar el Header flotante) */
.page-container {
  padding: 180px 8% 100px 8%;
  min-height: 100vh;
  background-color: #000000; /* Fondo negro sólido para subpáginas */
  position: relative;
}

/* Encabezado común de subpáginas */
.page-header {
  max-width: 700px;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease forwards;
}

.page-subtitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  margin-bottom: 15px;
  display: block;
}

.page-title {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.page-title span {
  font-weight: 600;
}

.page-description {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: #cccccc;
}

/* === REJILLA DE SERVICIOS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales en escritorio */
  gap: 40px;
  animation: fadeInUp 1.2s ease forwards;
}

.service-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: rgba(197, 168, 128, 0.25); /* Borde acentuado en hover */
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.03);
}

/* Contenedor de la Imagen con zoom en hover */
.service-image-wrapper {
  width: 100%;
  aspect-ratio: 3/4; /* Relación de aspecto retrato típica de fotos */
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img {
  transform: scale(1.05); /* Zoom sutil del 5% */
}

/* Contenido de la tarjeta de servicio */
.service-content {
  padding: 30px;
}

.service-number {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.service-card .service-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 15px;
}

.service-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* === ESTRUCTURA DE LA PÁGINA DE CONTACTO === */
.contact-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Columna izquierda para datos, derecha para formulario */
  gap: 80px;
  animation: fadeInUp 1.2s ease forwards;
}

/* Columna de Datos de Contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
}

.info-value {
  font-size: 24px;
  font-weight: 300;
  color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

a.info-value:hover {
  color: var(--color-accent);
  padding-left: 5px; /* Micro-animación de deslizamiento lateral */
}

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

/* Formulario de Contacto Minimalista */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.form-input {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Línea inferior fina */
  color: var(--color-text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 300;
  padding: 8px 0 12px 0;
  outline: none;
  transition: var(--transition-smooth);
}

textarea.form-input {
  resize: none;
  overflow-y: hidden;
  min-height: 120px; /* Altura inicial elegante para 5 filas aproximadamente */
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

/* Línea de enfoque activa color dorado */
.form-input:focus {
  border-bottom-color: var(--color-accent);
}

.form-submit-btn {
  align-self: flex-start; /* El botón ocupa solo su espacio necesario */
  cursor: pointer;
  border: 1px solid var(--color-text-primary);
  margin-top: 10px;
}

/* --- 10. PIE DE PÁGINA (MAIN FOOTER) --- */
.main-footer {
  width: 100%;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 8%;
  position: relative;
  z-index: 10;
}


.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left p {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   11. ADAPTABILIDAD RESPONSIVA (MEDIA QUERIES)
   ========================================================================== */

/* --- A. TABLETS Y COMPUTADORAS PEQUEÑAS (max-width: 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --container-padding: 0 5%;
  }

  .main-header {
    padding: var(--container-padding);
  }

  .hero-title {
    font-size: 40px;
  }

  .page-container {
    padding: 160px 5% 80px 5%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* --- B. DISPOSITIVOS MÓVILES / SMARTPHONES (max-width: 768px) --- */
@media (max-width: 768px) {
  /* Cabecera con Logo y Menú Hamburguesa */
  .main-header {
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
  }

  .logo-img {
    height: 32px;
  }

  /* Menú Hamburguesa y Overlay */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101; /* Por encima del overlay de navegación */
  }

  .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: var(--transition-smooth);
  }

  /* Animación para convertir las barras del botón en una "X" al abrir */
  .menu-open .menu-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Overlay de Navegación en pantalla completa */
  .main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: #000000; /* Negro sólido absoluto para evitar transparencias y traslucido */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .main-navigation.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .nav-link {
    font-size: 20px;
    letter-spacing: 0.15em;
  }


  /* Hero Section (Centrado y ajustado al viewport móvil) */
  .hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px 80px 24px;
    height: 100vh;
    height: 100dvh;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.35;
    text-align: center;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 12px;
    width: 100%;
    max-width: 280px; /* Ancho máximo premium para evitar estiramientos excesivos */
    margin: 0 auto;
  }

  /* Barra social adaptada de forma horizontal y centrada al final de la sección hero en móviles */
  .social-sidebar {
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 4%; /* Posicionada de forma relativa al final del hero section */
    transform: translateX(-50%);
    gap: 20px;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: fadeInUpMobile 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  }

  .social-sidebar .sidebar-divider {
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 6px;
  }

  .social-sidebar .location-sidebar {
    flex-direction: row;
    gap: 6px;
    align-items: center;
  }

  /* Páginas Secundarias (Centradas) */
  .page-container {
    padding: 160px 5% 60px 5%; /* Suficiente espacio para el header absoluto */
  }

  .page-header {
    margin-bottom: 40px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .page-title {
    font-size: 30px;
    text-align: center;
  }

  .page-description {
    font-size: 14px;
    text-align: center;
  }

  /* Servicios a 1 columna (Centrados) */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    text-align: center;
  }

  .service-content {
    padding: 24px;
    text-align: center;
  }

  /* Contacto a 1 columna (Centrado) */
  .contact-content-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-info {
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .info-block {
    text-align: center;
    align-items: center;
  }

  .info-value {
    font-size: 20px;
    text-align: center;
  }

  a.info-value:hover {
    padding-left: 0;
  }

  .contact-form-container {
    width: 100%;
  }

  .contact-form {
    text-align: center;
  }

  .form-group {
    text-align: center;
    align-items: center;
  }

  .form-label {
    text-align: center;
  }

  .form-input {
    text-align: center; /* Centrar texto escrito y placeholder */
  }

  .form-submit-btn {
    width: 100%;
    align-self: center;
  }

  /* Responsivo para el footer */
  .main-footer {
    padding: 20px 5%;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}


