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

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --bg: #f8f9fa;
  --text: #1a1a2e;
  --card-bg: #fff;
  --muted: #666;
  --border: #e2e8f0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}
.logo:hover { text-decoration: none; color: var(--accent); }

nav { display: flex; gap: 1.5rem; }

nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: #fff; text-decoration: none; }

/* Main */
main { min-height: calc(100vh - 120px); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d5e 100%);
  color: #fff;
  padding: 5rem 1rem;
  text-align: center;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #c73652; text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Sections */
.section { padding: 4rem 1rem; }
.section-alt { background: #fff; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

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

.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p { color: var(--muted); font-size: 0.95rem; }

/* CTA section */
.cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.cta p { margin-bottom: 1.5rem; opacity: 0.9; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: rgba(255,255,255,0.9); }

/* Page header */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-header p { opacity: 0.8; margin-top: 0.5rem; }

/* Forms */
.form-section { max-width: 640px; margin: 0 auto; }

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

textarea { resize: vertical; min-height: 140px; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.alert-success {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  color: #166534;
}
.alert-error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

/* Contact info */
.contact-info { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.5rem; color: var(--muted); }

/* Nosotros / About */
.about-text { max-width: 800px; margin: 0 auto 3rem; }
.about-text p { margin-bottom: 1rem; color: var(--muted); font-size: 1.05rem; }

/* Error page */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.error-message { font-size: 1.25rem; color: var(--muted); margin: 1rem 0 2rem; }

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a { color: rgba(255,255,255,0.85); }
footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 0.75rem; }
  nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 3rem 1rem; }
  .section { padding: 3rem 1rem; }
}
