:root {
  --primary: #ffd700;
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --bg-light: #f3f4f6;
  --text-light: #ffffff;
  --text-dark: #111111;
  --text-gray: rgba(255, 255, 255, 0.7);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.w-100 { width: 100%; }

.section-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Alert box */
.alert-box {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 2000;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease-out;
}

.alert-box button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
}

@keyframes slideDown {
  from { top: 0; opacity: 0; }
  to { top: 80px; opacity: 1; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-light);
}

.logo-box {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.3rem;
  font-family: var(--font-heading);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Sections */
section {
  padding: 8rem 5%;
}

.bg-light-section {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
  background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-darker) 100%);
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  max-width: 900px;
  margin-bottom: 2rem;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #cccccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stats {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Nosotros */
.grid-2-custom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.nosotros-left-block {
  background: var(--bg-darker);
  border-radius: 20px;
  padding: 4rem 3rem;
}

.nosotros-features {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.feature-icon-circle {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-darker);
  flex-shrink: 0;
  border: 4px solid #000;
  box-shadow: 0 0 0 4px var(--primary);
}

.feature-text {
  flex: 1;
}

.nosotros-right-block {
  padding: 1rem 0 1rem 2rem;
}

.estructura-list {
  display: flex;
  flex-direction: column;
}

.estructura-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  transition: var(--transition);
}

.estructura-item:hover {
  background: #f3f4f6;
}

.estructura-item:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; border-top: 1px solid #e5e7eb; }
.estructura-item:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border-bottom: 1px solid #e5e7eb; }

.estructura-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Equipo */
.team-card {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  color: var(--text-dark);
}
.team-card:nth-child(odd) { border: 2px solid var(--primary); }
.team-card:nth-child(even) { border: 2px solid var(--text-dark); }
.team-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 800;
}
.team-card:nth-child(odd) .avatar { background: var(--primary); color: var(--text-dark); }
.team-card:nth-child(even) .avatar { background: var(--text-dark); color: var(--primary); }

.team-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Servicios */
.service-card {
  background: rgba(255,255,255,0.03);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}
.service-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  transform: translateY(-5px);
}
.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  background: rgba(255,215,0,0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style: none;
  color: var(--text-gray);
}

.service-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Cotizar Form */
.cotizar-container {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.step { display: none; }
.step.active { display: block; animation: fadeIn 0.5s; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-option {
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.service-option:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.service-option.selected {
  border-color: var(--primary);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}
.form-control {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* Contacto */
.contact-wrapper {
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
footer {
  background: var(--bg-darker);
  padding: 5rem 5% 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

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

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-custom { grid-template-columns: 1fr; }
  .nosotros-right-block { padding: 2rem 0 0 0; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cotizar-container { padding: 2rem; }
  .section-title { font-size: 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
  .nosotros-left-block { padding: 2.5rem 1.5rem; }
}
