:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --bg: #f9fafb;
  --text: #111827;
  --muted: #4b5563;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 16px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4 { font-family: 'Poppins', sans-serif; font-weight: 700; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAVBAR */
.navbar { background: var(--white); box-shadow: var(--shadow); }
.nav-wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: .5rem 1rem; border-radius: 8px;
}

/* HERO */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1551434678-e076c223a692?q=80&w=1600') center/cover no-repeat;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(17,24,39,.6); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: auto; }
.hero h1 { font-size: 2.6rem; margin-bottom: 2rem; }
.hero-card {
  background: rgba(255,255,255,0.95);
  color: var(--text);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card p { margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: .8rem 1.4rem; border-radius: 8px;
  font-weight: 600; display: inline-block;
  transition: all .3s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* SECTIONS */
section { padding: 3.5rem 0; }
.section-alt { background: #fff; }
.section-title {
  text-align: center; font-size: 2rem; margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: ''; display: block;
  width: 60px; height: 4px;
  background: var(--primary);
  margin: .5rem auto 0; border-radius: 4px;
}

/* GRIDS */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;   /* <<< centra horizontalmente */
  text-align: center;    /* <<< centra texto */
  padding: 2rem 1.5rem;
}

.card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.card h3 {
  margin-bottom: .5rem;
  font-weight: 600;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Ajuste imágenes en tarjetas (Casos y Blog) */
.card img {
  width: 100%;
  height: 200px;       /* <<< todas iguales */
  object-fit: cover;   /* <<< recorta sin deformar */
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}


/* ABOUT */
.about-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-text h2 { margin-bottom: 1rem; }
.about-media img { border-radius: var(--radius); }
@media(max-width: 900px){ .about-grid{ grid-template-columns: 1fr; } }

/* FORM */
.form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media(max-width: 700px){ .grid-2 { grid-template-columns: 1fr; } }
input,select,textarea {
  padding: .9rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
}
textarea { resize: none; }
button { cursor: pointer; }

/* FOOTER */
.footer {
  background: #111827; color: #fff;
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 2rem; text-align: center;
}
.footer h4 { margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; }
.social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff; transition: .3s;
}
.social a:hover { background: var(--accent); }
.footer-bottom {
  margin-top: 2rem;
  font-size: .9rem;
  color: #9ca3af;
  text-align: center;
}
