@media (min-width: 768px) {
  #mobile-menu,
  .mobile-menu {
    display: none !important;
    visibility: hidden !important;
  }
}
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-accent: #000000;
  --color-overlay: rgba(0, 0, 0, 0.75);
  --color-gray-light: #f8f9fa;
  --color-gray-medium: #6b7280;
  --color-gray-dark: #374151;
  --color-border: #e5e7eb;
}

/* Font DM Sans */
body {
  font-family: "DM Sans", sans-serif;
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Navbar elegante con fondo blanco */
header {
  @apply fixed top-0 left-0 w-full z-50 py-4 px-6;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Logo/nombre elegante */
header a {
  @apply text-2xl font-semibold tracking-wide;
  color: var(--color-text);
  transition: all 0.3s ease;
}

header a:hover {
  color: #000000;
  transform: translateY(-1px);
}

/* Navigation desktop */
nav.md\\:flex {
  @apply hidden md:flex space-x-8 items-center;
}

nav.md\\:flex a.nav-link {
  @apply font-light transition-colors duration-300;
  color: var(--color-gray-dark);
  text-decoration: none;
  position: relative;
}

nav.md\\:flex a.nav-link:hover {
  color: var(--color-text);
}

/* Mobile menu elegante */
.mobile-menu {
  @apply fixed top-0 right-0 h-full w-64 z-50 p-8;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1);
  border-left: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

/* Asegurar visibilidad cuando JS carga */
.js-loaded .mobile-menu {
  visibility: visible;
}

.mobile-menu nav a {
  @apply block text-xl py-2 border-b transition;
  border-color: var(--color-border);
  color: var(--color-text);
  font-weight: 300;
}

.mobile-menu nav a:hover {
  color: #000000;
  padding-left: 0.5rem;
}

/* Botón cierre menu mobile */
#menu-close {
  @apply absolute top-4 right-4 text-2xl;
  color: var(--color-gray-dark);
  transition: all 0.3s ease;
}

#menu-close:hover {
  color: #000000;
}

/* Texto con peso ligero */
.bio-text,
.projects-container,
.project-card,
.contact-form input,
.contact-form textarea {
  @apply font-light;
}

/* Títulos sin decoración por defecto */
h2:not(#fotografias h2):not(#disenos h2):not(#proyectos h2) {
  text-decoration: none;
  color: var(--color-text);
}

/* Subrayado negro elegante para las 3 secciones */
#fotografias h2,
#disenos h2,
#proyectos h2 {
  position: relative;
  display: inline-block;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

#fotografias h2::after,
#disenos h2::after,
#proyectos h2::after {
  content: "";
  position: absolute;
  bottom: -0.6rem;
  left: -10%;
  width: 120%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  opacity: 0.4;
}

/* Hover sobre enlaces navbar */
nav a.nav-link:hover {
  color: var(--color-text);
}

.hero-section {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  background-color: #ffffff;
  /* Fondo elegante blanco puro */
  background-image: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.hero-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.9) 0%,
    transparent 100%
  );
}

.bio-text {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Responsividad mejorada */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-image {
    height: 250px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Prevenir extensión de columnas */
.projects-grid > * {
  grid-column: auto !important;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.1);
}

.project-image {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  background-color: var(--color-gray-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d5db'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
  background-size: 48px 48px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Soporte para videos */
.project-video {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  background: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  color: var(--color-text);
  border-radius: 6px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.social-icon {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--color-gray-dark);
}

.social-icon:hover {
  transform: translateY(-3px);
  color: var(--color-accent);
}

.login-container {
  max-width: 480px !important;
  min-width: 450px !important;
  width: 480px !important;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

.input-field {
  border: 1px solid var(--color-border);
  transition: border-color 0.3s;
  background-color: white;
  color: var(--color-text);
  border-radius: 6px;
}

.input-field:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
  .hero-section {
    height: 80vh;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .hero-section {
    height: 70vh;
  }

  .bio-text {
    padding: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* Estilos adicionales para las galerías */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.4;
  max-height: 4.2em;
  color: var(--color-text);
}

.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Animaciones suaves para botones "Ver más" */
.transition-all {
  transition: all 0.3s ease;
}

/* Estilos para iconos - CAMBIADO A NEGRO */
.text-\\[#d4a373\\] {
  color: var(--color-gray-dark) !important;
}

/* Mejoras de accesibilidad */
.focus\\:ring-2:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Animación de aparición para elementos de galería */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Botones elegantes en negro */
.btn-primary {
  background-color: var(--color-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid var(--color-accent);
  font-weight: 400;
}

.btn-primary:hover {
  background-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive design mejorado */
@media (max-width: 768px) {
  .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .hero-overlay {
    padding: 1rem;
  }

  .bio-text h1 {
    font-size: 2rem;
  }
}

/* Mensajes de notificación elegantes */
@keyframes slideInFromTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.animate-pulse-slow {
  animation: slideInFromTop 0.6s ease-out;
}

.fade-out {
  animation: fadeOut 0.4s ease-in forwards;
}

/* Efectos hover para botones de cierre */
.mensaje-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

/* Animación auto-close */
@keyframes autoClose {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

.mensaje-progress {
  height: 3px;
  background: linear-gradient(to right, var(--color-gray-dark), var(--color-text));
  animation: autoClose 5s linear forwards;
}

/* Validación visual de formularios */
.contact-form input,
.contact-form textarea {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input.border-red-500,
.contact-form textarea.border-red-500 {
  border-color: #1a1a1a !important;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.contact-form input.border-green-500,
.contact-form textarea.border-green-500 {
  border-color: var(--color-gray-medium) !important;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Animación para campos válidos */
.contact-form input.border-green-500:focus,
.contact-form textarea.border-green-500:focus {
  border-color: var(--color-gray-medium);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

/* Animación para campos inválidos */
.contact-form input.border-red-500:focus,
.contact-form textarea.border-red-500:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2);
}

/* Botones y elementos adicionales forzados a negro elegante */
button {
  background: var(--color-accent);
  color: white;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  font-weight: 400;
}

button:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Asegurar que cualquier elemento beige se convierta a negro/gris */
[class*="bg-amber"],
[class*="bg-stone"],
[class*="bg-yellow"],
[class*="text-amber"],
[class*="text-stone"],
[class*="text-yellow"],
[style*="#d4a373"],
[style*="#ecd9c6"],
[style*="#f0d9a4"],
[style*="#b48a50"] {
  background-color: var(--color-gray-light) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

/* Suppression de la bordure noire du menu burger avec !important */
.mobile-menu {
  border-left: none !important;
}

/* Header elegante en blanco y negro */
header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
      }

      /* Logo elegante */
      header a {
        color: #1a1a1a !important;
        font-family: 'DM Sans', sans-serif !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
      }

      header a:hover {
        color: #000000 !important;
        transform: translateY(-1px) !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
      }

      /* Enlaces navegación desktop */
      .nav-link {
        color: #374151 !important;
        font-weight: 400 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        text-decoration: none !important;
      }

      .nav-link:hover {
        color: #000000 !important;
        transform: translateY(-1px) !important;
      }

      /* Efecto underline elegante */
      .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #000000, transparent);
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        transform: translateX(-50%);
      }

      .nav-link:hover::after {
        width: 100%;
      }

      /* Botón menú móvil */
    /* Bouton menü móvil - SANS BORDURE */
#menu-toggle {
  color: #1a1a1a !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0.25rem !important;
  border-radius: 0 !important;
}

#menu-toggle:hover {
  color: #000000 !important;
  transform: scale(1.1) !important;
}

#menu-toggle:focus,
#menu-toggle:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}


      /* Menú móvil elegante */
      .mobile-menu {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        box-shadow: -8px 0 20px rgba(0, 0, 0, 0.1) !important;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
      }

      .mobile-menu.open {
        transform: translateX(0) !important;
      }

      /* Enlaces menú móvil */
      .mobile-menu nav a {
        color: #1a1a1a !important;
      
        font-weight: 400 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
      }

      .mobile-menu nav a:hover {
        color: #000000 !important;
        padding-left: 1rem !important;
      }

      .mobile-menu nav a::before {
        content: '';
        position: absolute;
        left: -0.5rem;
        top: 50%;
        width: 3px;
        height: 0;
        background: #000000;
        transition: height 0.3s ease;
        transform: translateY(-50%);
      }

      .mobile-menu nav a:hover::before {
        height: 100%;
      }

      /* Botón cerrar menú móvil */
     /* Bouton fermer menu mobile – sans bordure ni ombre */
#menu-close {
  color: #1a1a1a !important;
  transition: all 0.3s ease !important;
  border: none !important;
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#menu-close:hover {
  color: #000000 !important;
  transform: rotate(90deg) !important;
  border: none !important;
  outline: none !important;
  background: none !important;
}

#menu-close:focus,
#menu-close:active {
  border: none !important;
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
}


      /* Body */
      body {
        font-family: 'DM Sans', sans-serif !important;
        background-color: #ffffff !important;
        color: #1a1a1a !important;
      }

      /* Iconos */
      i {
        color: inherit !important;
      }
