
/* 1. CONFIGURACIÓN GENERAL */
:root {
  --bg: #090b12;
  --surface: #11141d;
  --surface-hover: #171c27;
  --text: #f4f6fb;
  --muted: #9ba3b5;
  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --accent-dark: #7c3aed;
  --margin: 0;
  --padding: 0;
  --box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

span {
  color: var(--accent);
}

/* 2. BARRA DE NAVEGACIÓN */
.navbar {
  min-height: 76px;
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 18, 0.94);
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar nav a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.navbar nav a:hover {
  color: var(--accent);
}

.navbar nav .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 9px 16px;
  border-radius: 6px;
}

/* 3. PRESENTACIÓN PRINCIPAL */
.hero {
  min-height: 600px;
  padding: 120px 8% 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(
      ellipse at 80% 30%,
      rgba(167, 139, 250, 0.12),
      transparent 45%
    );
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1.08;
  letter-spacing: -3px;
}

.hero h1 span {
  display: block;
}

.hero-description {
  color: var(--muted);
  max-width: 560px;
  margin-top: 25px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #10140a;
  background: var(--accent);
}

.button-primary:hover {
  background: #c4b5fd;
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface-hover);
}

.hero-note {
  color: #747d90;
  font-size: 0.7rem;
  letter-spacing: 2px;
  margin-top: 55px;
}

/* 4. SECCIONES Y TÍTULOS */
.section {
  padding: 90px 8%;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 38px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.section-heading > p {
  color: var(--muted);
  max-width: 280px;
  font-size: 0.9rem;
}

/* 5. TARJETAS DE PROYECTOS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  min-width: 0;
}

.project-visual {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s, transform 0.25s;
}

.project-visual:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-newyork {
  background:
    linear-gradient(140deg, #172438, #354c63 55%, #11141d);
}

.project-sport {
  background:
    radial-gradient(circle at 75% 30%, #2b2045, transparent 40%),
    linear-gradient(145deg, #211936, #0c0a12);
}

.project-number {
  position: absolute;
  top: 22px;
  left: 24px;
  color: #d0d7e4;
  font-size: 0.7rem;
  letter-spacing: 2px;
}

.project-art-title {
  color: var(--text);
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -2px;
}

.project-open {
  position: absolute;
  bottom: 22px;
  right: 24px;
  color: var(--accent);
  font-size: 1.6rem;
}

.project-info {
  padding: 18px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-info h3,
.service-card h3 {
  font-size: 1.1rem;
}

.project-info p {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 4px;
}

.tag {
  flex-shrink: 0;
  color: var(--accent);
  background: #211936;
border: 1px solid #49366b;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 0.7rem;
}

/* 6. SERVICIOS */
.services {
  background: #0d1018;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 27px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.2s, background 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.service-number {
  display: block;
  margin-bottom: 28px;
  font-size: 0.85rem;
}

.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* 7. CONTACTO */
.contact-section {
  padding: 110px 8%;
  text-align: center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(167, 139, 250, 0.10),
      transparent 65%
    );
}

.contact-section .eyebrow {
  margin-bottom: 18px;
}

.contact-section > p:not(.eyebrow) {
  color: var(--muted);
  margin: 20px auto 28px;
}

.contact-section .button {
  display: inline-flex;
}

.contact-section h2 span {
  display: inline-block;
}

/* 8. PIE DE PÁGINA */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer p,
.footer > a:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

/* 9. ADAPTACIÓN A MÓVILES */
@media (max-width: 760px) {
  .navbar {
    padding: 16px 5%;
  }

  .navbar nav {
    gap: 13px;
  }

  .navbar nav a {
    font-size: 0.78rem;
  }

  .navbar nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 540px;
    padding: 90px 6% 65px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .section {
    padding: 65px 6%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 270px;
  }

  .contact-section {
    padding: 80px 6%;
  }

  .footer {
    padding: 24px 6%;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .navbar nav {
    gap: 10px;
  }

  .navbar nav .nav-cta {
    padding: 8px 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .project-info {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* RESPETA LA PREFERENCIA DE MOVIMIENTO DEL USUARIO */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* Mejoras visuales para las tarjetas de proyectos */

.project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: #101014;
  transition: transform 0.3s ease, border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(130, 110, 255, 0.65);
  box-shadow: 0 12px 35px rgba(80, 60, 180, 0.15);
}

.project-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
  text-decoration: none;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(112, 76, 255, 0.22),
      transparent 40%
    ),
    linear-gradient(135deg, #17171f, #09090c);
}

.project-art-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -2px;
  color: #f5f4ff;
}

.project-number {
  color: #aaa1ff;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.project-open {
  align-self: flex-end;
  color: #c3b9ff;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-open {
  transform: translate(4px, -4px);
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.project-info h3 {
  margin: 0 0 6px;
}

.project-info p {
  margin: 0;
  color: #a5a5b2;
  font-size: 0.9rem;
}

.tag {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #c3b9ff;
  font-size: 0.75rem;
}


/* Corrección de espacio en las tarjetas de proyectos */

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  min-width: 0;
  margin-top: 20px;
}

.project-visual {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 280px;
}

.project-info {
  position: relative;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.project-art-title {
  position: relative;
  z-index: 1;
}


/* Corregir la separación de los textos de la tarjeta */

.project-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 28px;
  min-height: 300px;
  box-sizing: border-box;
}

.project-number {
  display: block;
  position: relative;
  z-index: 2;
  line-height: 1.5;
  margin-bottom: 10px;
}

.project-art-title {
  display: block;
  position: relative;
  z-index: 1;
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
}

.project-open {
  position: relative;
  z-index: 2;
  margin-top: auto;
}


/* Pulido de la portada */

.hero-description {
  max-width: 620px;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease,
              background 0.25s ease,
              border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  box-shadow: 0 5px 24px rgba(140, 115, 255, 0.15);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-secondary:hover {
  border-color: rgba(180, 160, 255, 0.7);
}

.hero-note {
  margin-top: 42px;
  letter-spacing: 2px;
  font-size: 0.72rem;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    box-sizing: border-box;
  }
}


/* SECCIÓN SOBRE MÍ */

.about {
  padding: 110px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.about-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.about-heading h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 20px 0;
}

.about-heading h2 span {
  display: block;
  color: #b5a5ff;
}

.about-description {
  max-width: 620px;
  color: #aaa7b7;
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about-feature {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.25s ease,
              border-color 0.25s ease;
}

.about-feature:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 165, 255, 0.5);
}

.about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(181, 165, 255, 0.12);
  color: #b5a5ff;
  font-size: 1.2rem;
}

.about-feature h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.about-feature p {
  margin: 0;
  color: #aaa7b7;
  line-height: 1.8;
  font-size: 0.92rem;
}

@media (max-width: 750px) {
  .about {
    padding: 75px 0;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}


/* Alinear la sección Sobre mí con el resto de la web */

.about {
  width: 100%;
  box-sizing: border-box;
  padding: 110px 0;
}

.about-heading,
.about-features {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.about-heading {
  margin-bottom: 48px;
}

@media (max-width: 1160px) {
  .about {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 600px) {
  .about {
    padding: 70px 20px;
  }
}


/* Mejoras visuales de servicios */

.section-description {
  max-width: 420px;
  color: #aaa7b7;
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.008)
  );
  transition: transform 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(181, 165, 255, 0.5);
  background: linear-gradient(
    145deg,
    rgba(181, 165, 255, 0.08),
    rgba(255, 255, 255, 0.01)
  );
}

.service-number {
  margin-bottom: 30px;
  color: #b5a5ff;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: #aaa7b7;
  font-size: 0.93rem;
  line-height: 1.8;
}

.service-detail {
  margin-top: 26px;
  color: #c5baff;
  font-size: 0.82rem;
  font-weight: 600;
}


/* Sección de contacto */

.contact-section {
  position: relative;
  box-sizing: border-box;
  margin: 80px auto;
  padding: 80px 30px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(181, 165, 255, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(139, 112, 255, 0.14),
      transparent 65%
    ),
    #101014;
}

.contact-section h2 {
  margin: 24px 0 20px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -2px;
}

.contact-section h2 span {
  color: #b5a5ff;
}

.contact-description {
  max-width: 540px;
  margin: 0 auto;
  color: #aaa7b7;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.contact-note {
  margin-top: 24px;
  color: #888594;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .contact-section {
    margin: 50px auto;
    padding: 60px 20px;
  }
}


/* Formulario de contacto */

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 42px auto 0;
  text-align: left;
}

.contact-form label {
  margin-top: 8px;
  color: #e7e3f2;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #15151c;
  color: #ffffff;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #858392;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #b5a5ff;
  outline-offset: 2px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  margin-top: 12px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .contact-form button {
    width: 100%;
  }
}

.logo img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.logo img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.08);
}
/* Navegación con efecto profesional */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 11, 18, 0.85);
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

/* Animaciones de los botones */
button,
.btn,
.nav-cta,
.hero-actions a {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.btn:hover,
.nav-cta:hover,
.hero-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.2);
}

.project-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 20px;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.08);
  font-size: 11px;
  letter-spacing: 1px;
}


.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.service-cta:hover {
  color: #ffffff;
  gap: 12px;
}

.services-note {
  margin-top: 28px;
  color: #9ba3b5;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}


/* ================================
   DISEÑO RESPONSIVE PARA MÓVILES
================================ */

/* Evita desbordamientos horizontales */
* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Tablets y móviles */
@media (max-width: 768px) {

    header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px 5%;
    }

    header .logo {
        max-width: 150px;
        height: auto;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
    }

    nav a {
        font-size: 14px;
    }

    .hero,
    .carta,
    .sobre,
    .nosotros,
    .contacto {
        padding: 45px 5%;
    }

    .hero h1 {
        font-size: clamp(2rem, 9vw, 3.5rem);
        line-height: 1.1;
    }

    h2 {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
    }

    .descripcion,
    .sobre-texto p,
    .contacto-descripcion {
        font-size: 16px;
        line-height: 1.6;
    }

    .hero-botones {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .boton {
        display: inline-block;
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .carta-foto img,
    .sobre-imagen img {
        display: block;
        width: 100%;
        height: auto;
    }

    .sobre {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .contacto-contenido {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contacto-tarjeta {
        min-width: 0;
        padding: 20px;
    }

    .pedidos-online {
        margin-top: 25px;
        padding: 20px;
    }

    footer {
        padding: 20px 5%;
        text-align: center;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {

    header .logo {
        max-width: 125px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 13px;
    }

    .hero,
    .carta,
    .sobre,
    .nosotros,
    .contacto {
        padding: 35px 16px;
    }

    .hero-botones .boton {
        width: 100%;
    }
}
