/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables CSS para fuentes */
:root {
  --font-inter: "Inter", sans-serif;
  --font-playfair-display: "Playfair Display", serif;
  --font-dancing-script: "Dancing Script", cursive;
}

/* Custom CSS para la página de Daniel Moros */
body {
  font-family: var(--font-inter);
  background-color: #0a0a0a;
  background-image: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 75%);
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fillRule='evenodd'%3E%3Cg fill='%23222' fillOpacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInScale 1.5s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  font-family: var(--font-playfair-display);
  font-style: italic;
  font-size: 4.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  animation: slideInTop 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.5s;
  color: white;
}

.hero-subtitle {
  font-family: var(--font-playfair-display);
  font-style: italic;
  font-size: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  animation: slideInBottom 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.8s;
  color: white;
}

@keyframes slideInTop {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Animación de línea de carga */
.loading-line-container {
  position: relative;
  width: 80%;
  max-width: 400px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 20px 0;
  border-radius: 2px;
  overflow: hidden;
}

.loading-point {
  position: absolute;
  top: 0;
  left: -60px;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  box-shadow: 0 0 25px 10px rgba(255, 255, 255, 0.7);
  animation: movePoint 3s linear infinite;
}

@keyframes movePoint {
  0% {
    left: -80px;
  }
  100% {
    left: 100%;
  }
}

.section-title {
  font-family: var(--font-playfair-display);
  font-style: italic;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

.about-section,
.portfolio-section,
.pricing-section,
.contact-section {
  padding: 80px 0;
  background-color: #121212;
  border-top: 1px solid #222;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.portfolio-category {
  margin-bottom: 4rem;
}

.category-title {
  font-family: var(--font-playfair-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.category-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: white;
  border-radius: 1.5px;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  opacity: 1; /* Asegurar que las imágenes sean visibles por defecto */
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-text {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay-text {
  transform: translateY(0);
}

.social-links a {
  color: white;
  font-size: 2.5rem;
  margin: 0 15px;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #aaa;
  transform: translateY(-5px);
}

footer {
  padding: 30px 0;
  text-align: center;
  background-color: #0a0a0a;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  color: #888;
}

.contact-text {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.signature {
  font-family: var(--font-dancing-script);
  font-size: 3rem;
  font-weight: 400;
  color: white;
  margin-top: 2rem;
  letter-spacing: 2px;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: none;
}

.signature:hover {
  opacity: 1;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Clases para la animación de scroll */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Ajustes responsivos */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .about-text {
    font-size: 1rem;
  }
  .category-title {
    font-size: 1.8rem;
  }
  .loading-line-container {
    width: 90%;
  }
  .signature {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .category-title {
    font-size: 1.5rem;
  }
  .signature {
    font-size: 2rem;
  }
}

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

.pricing-item {
  position: relative;
  padding: 32px 24px;
  border: 1px solid #222;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

.pricing-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.07);
  border-color: #2a2a2a;
}

.pricing-title {
  font-family: var(--font-playfair-display);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: white;
  text-align: center;
}

.pricing-price {
  font-family: var(--font-playfair-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.pricing-features {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  color: #eaeaea;
}

.pricing-features li {
  padding: 6px 0;
  border-bottom: 1px dashed #2a2a2a;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-note {
  color: #cfcfcf;
  font-size: 0.95rem;
  text-align: center;
}
