/* ============================================
   CARMEN · Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --black: #0A0A0A;
  --black-soft: #141414;
  --white: #FFFFFF;
  --pink: #FF00AA;
  --cyan: #00E5FF;
  --lime: #B8FF00;
  --gray-dark: #3A3A3A;
  --gray-mid: #888888;
  --gray-light: #E5E5E5;
  --gray-bg: #F5F5F5;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --padding-x: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ============ TIPOGRAFÍA ============ */

.display-xl {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.display-l {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-m {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mono-l {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.body-l { font-size: 1.125rem; line-height: 1.7; font-weight: 400; }
.body-m { font-size: 1rem; line-height: 1.7; font-weight: 400; }

.accent-pink { color: var(--pink); }
.accent-cyan { color: var(--cyan); }
.accent-lime { color: var(--lime); }

/* ============ LAYOUT ============ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  position: relative;
}

.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ============ HEADER / NAV ============ */

.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 rgba(255, 255, 255, 0.05);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--pink);
  display: inline-block;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pink);
}

.nav-cta {
  background: var(--pink);
  color: var(--black);
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: transform 0.15s ease, background 0.2s ease;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--pink);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 0.5rem;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.lang-switch a:hover { color: var(--white); }
.lang-switch a.active { color: var(--pink); }
.lang-switch .divider { color: rgba(255, 255, 255, 0.2); }

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s;
}

@media (max-width: 820px) {
  .nav { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--black);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    align-items: flex-start;
  }
}

/* ============ HERO ============ */

.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 170, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-subtitle {
  max-width: 650px;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ BOTONES ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--pink);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--pink);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
  font-size: 1.1em;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============ SECCIONES GENERALES ============ */

.section-header {
  margin-bottom: 4rem;
  max-width: 800px;
}

.section-label {
  margin-bottom: 1rem;
  color: var(--pink);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
}

/* ============ GRIDS Y CARDS ============ */

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--pink);
  margin-bottom: 1rem;
  font-weight: 500;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.card-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 0.95rem;
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--pink);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

.card-list {
  list-style: none;
  margin-top: 1.5rem;
}

.card-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 500;
}

/* ============ SERVICE BLOCKS (detalle) ============ */

.service-block {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
}

.service-block:first-of-type { border-top: none; }

.service-block-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--pink);
  letter-spacing: 0.1em;
  font-weight: 500;
  padding-top: 0.5rem;
}

.service-block-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.service-block-price {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--pink);
  margin-bottom: 1.5rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--pink);
}

.service-block-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 700px;
}

.service-block-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem 2rem;
}

.service-block-list li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-block-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 500;
}

@media (max-width: 720px) {
  .service-block { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============ PROCESS STEPS ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.step:last-child { border-right: none; }

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.step-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .step { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .step:last-child { border-bottom: none; }
}

/* ============ TABLA DE PROYECTOS ============ */

.project-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.project-table th,
.project-table td {
  text-align: left;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 500;
}

.project-table td { font-size: 0.95rem; }

.project-table td:nth-child(2) {
  color: var(--pink);
  font-weight: 500;
  font-family: var(--font-mono);
}

.project-table td:nth-child(3) {
  color: var(--gray-mid);
  font-size: 0.875rem;
}

@media (max-width: 620px) {
  .project-table { font-size: 0.875rem; }
  .project-table th, .project-table td { padding: 0.875rem 0.5rem; }
}

/* ============ FORMULARIO ============ */

.form-section {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 0.625rem;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0.875rem 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--pink);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font-display);
}

.form-submit {
  background: var(--pink);
  color: var(--black);
  padding: 1rem 2.5rem;
  font-weight: 500;
  font-size: 1rem;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: auto;
}

.form-submit:hover {
  background: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--pink);
}

.form-success {
  background: rgba(184, 255, 0, 0.1);
  border: 1px solid var(--lime);
  padding: 1.5rem;
  margin-top: 2rem;
  color: var(--lime);
  display: none;
}

.form-success.visible { display: block; }

/* ============ CONTACT CARDS ============ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  transition: all 0.25s ease;
}

.contact-card:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.contact-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.contact-card-value {
  font-size: 1.125rem;
  font-weight: 500;
  word-break: break-word;
}

/* ============ CTA SECCIÓN ============ */

.cta-section {
  background: var(--black-soft);
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 0, 170, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-section h2 {
  position: relative;
  margin-bottom: 2rem;
}

.cta-section p {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--black);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--gray-mid);
  font-size: 0.9375rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.375rem 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--gray-mid);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============ FEATURE STRIP ============ */

.feature-strip {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: var(--black-soft);
}

.feature-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.feature-item {
  text-align: left;
}

.feature-item-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--pink);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.feature-item-label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ============ PAGE HEADER (páginas internas) ============ */

.page-header {
  padding-top: clamp(8rem, 15vw, 12rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 170, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.page-header-label {
  color: var(--pink);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ============ FAQ / ACCORDION ============ */

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  background: transparent;
}

.faq-question:hover { color: var(--pink); }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--pink);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ============ UTILIDADES ============ */

.highlight {
  color: var(--pink);
  position: relative;
  display: inline-block;
}

.text-muted { color: rgba(255, 255, 255, 0.6); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4rem 0;
}
