/* ============================= */
/* RESET Y BASE */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background-color: #f0f4f8;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================= */
/* UTILIDADES */
/* ============================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 0;
}

h1, h2, h3 {
  color: #1a202c;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 600;
}

/* ============================= */
/* HEADER */
/* ============================= */
header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

nav h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2b6cb0;
}

.btn-nav {
  text-decoration: none;
  color: #2b6cb0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  color: #1e4f8a;
}

/* ============================= */
/* HERO */
/* ============================= */
.hero-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 90vh;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 500px;
  color: #4a5568;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-img {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  max-width: 100%;
}

/* Botón principal */
.btn-primary {
  display: inline-block;
  background: #2b6cb0;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1e4f8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(43,108,176,0.3);
}

/* ============================= */
/* SERVICIOS */
/* ============================= */
.servicios-custom {
  background: #ffffff;
  border-radius: 12px;
  padding: 4rem 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
}

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

.services-grid article {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 8px;
  transition: 0.3s ease;
  text-align: center;
}

.services-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.services-grid h3 {
  margin-bottom: 1rem;
  color: #1e3a8a;
  font-weight: 600;
}

/* ============================= */
/* PROCESO */
/* ============================= */
.proceso-custom ol {
  padding-left: 1.2rem;
}

.proceso-custom li {
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ============================= */
/* CONTACTO */
/* ============================= */
.contacto-custom form {
  max-width: 500px;
  margin-top: 2rem;
}

.contacto-custom label {
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a202c;
}

.contacto-custom input,
.contacto-custom textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid #cbd5e0;
  font-size: 1rem;
}

.contacto-custom input:focus,
.contacto-custom textarea:focus {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43,108,176,0.15);
}

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

.contacto-custom button {
  margin-top: 2rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

/* ============================= */
/* MENSAJES ÉXITO/ERROR */
.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* ============================= */
/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background: #ffffff;
  font-size: 0.9rem;
  color: #718096;
}

/* ============================= */
/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-custom {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}