/* ========================================
   Paolo Services - Professional Stylesheet
   Modern, Animated & Optimized Design
   ======================================== */

:root {
  --bg: #0f1115;
  --card: #141824;
  --muted: #a8b3cf;
  --text: #e8ecf4;
  --accent: linear-gradient(120deg, #ff3d00, #ffb300, #00e676, #00b0ff, #7c4dff);
  --pill: linear-gradient(90deg, #ff4d4d, #ffd54f, #52e5a3, #59b6ff, #9a7bff);
  --ring: 0 0 0 3px rgb(255 255 255 / 8%);
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ========== RESET & BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  background: radial-gradient(1200px 800px at 10% -10%, #1b2030 0%, transparent 60%),
    radial-gradient(1000px 600px at 90% -20%, #162034 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    Apple Color Emoji, Segoe UI Emoji;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: 0 20px;
}

/* ========== NAVIGATION ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(12px);
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.95), rgba(15, 17, 21, 0.6));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover {
  transform: scale(1.05);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 179, 0, 0.3);
  animation: pulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: rotate 4s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 40px rgba(255, 179, 0, 0.3);
  }
  50% {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35), 0 0 60px rgba(0, 230, 118, 0.4);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.brand-title {
  font-size: 18px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0f14;
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.lang button:hover {
  color: var(--text);
}

.lang button.active {
  color: #111;
  background: var(--pill);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lang button.active::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  z-index: -1;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--ring);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--ring), 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta b {
  letter-spacing: 0.2px;
  font-weight: 700;
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 72px 20px 96px;
}

.title {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.title .stroke {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: saturate(130%);
  display: inline-block;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.6;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.badge {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.free {
  border: 0;
  background: var(--pill);
  color: #111;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 179, 0, 0.3);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(255, 179, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 24px rgba(0, 230, 118, 0.4);
  }
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.btn {
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1016;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 15px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.btn.primary {
  background: var(--accent);
  color: #0b0d10;
  border: 0;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

.btn.primary:hover {
  box-shadow: 0 12px 32px rgba(255, 179, 0, 0.5);
  transform: translateY(-3px) scale(1.02);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Card with Image */
.hero-card {
  position: relative;
  border-radius: var(--radius);
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-card .spark {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--a, 0deg),
    transparent 0 30%,
    rgba(255, 255, 255, 0.12) 30% 60%,
    transparent 60% 100%
  );
  filter: blur(8px);
  animation: spin 12s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to {
    --a: 360deg;
    transform: rotate(360deg);
  }
}

.hero-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.hero-card p {
  padding: 18px 22px;
  margin: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.9), rgba(15, 17, 21, 0.95));
}

/* ========== SECTIONS ========== */
section {
  padding: 88px 0;
  position: relative;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 17px;
}

/* Grid System */
.grid {
  display: grid;
  gap: 18px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Cards */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    500px 300px at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.card h4 {
  margin: 4px 0 0;
  font-size: 19px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Gallery Tiles with Real Images */
.tile {
  aspect-ratio: 16/10;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.tile:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile:hover img {
  transform: scale(1.08);
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  z-index: 1;
}

.tile .label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 13px;
  border-radius: 999px;
  z-index: 2;
  transition: all 0.3s ease;
}

.tile:hover .label {
  background: var(--pill);
  color: #111;
  border-color: transparent;
}

/* Process Steps */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step .num {
  /* counter-increment: step; */
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--pill);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: #111;
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.3);
}


.step p {
  margin: 0;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  background: #0c1016;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 11px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #59b6ff;
  box-shadow: 0 0 0 4px rgba(89, 182, 255, 0.15);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.legal {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER ========== */
footer {
  padding: 32px 0 64px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer .links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
    'Courier New', monospace;
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 920px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    gap: 6px;
  }

  .cta span {
    display: none;
  }
}

@media (max-width: 600px) {
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: clamp(32px, 8vw, 42px);
  }

  section {
    padding: 56px 0;
  }

  .cta b {
    font-size: 14px;
  }

  /* Header: padding interno para el contenido */
  .container.nav-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Formulario: campo phone no pegado a la derecha */
  #quote-form > div {
    gap: 8px !important;
  }
  #quote-form input[name="phone"] {
    margin-right: 0 !important;
  }
  #quote-form input,
  #quote-form textarea {
    font-size: 15px;
    padding: 11px 10px;
    border-radius: 9px;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}

.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}
