/* ========================================
   RESET
======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;

  background: #e7ecef;

  font-family: "Montserrat", sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:root {
  --color-bg: #e7ecef;
  --color-primary: #274c77;
  --color-secondary: #6096ba;
  --color-accent: #a3cef1;
  --color-text: #8b8c89;

  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 30px;

  --shadow-sm: 0 10px 20px rgba(0, 0, 0, 0.08);

  --shadow-md: 0 15px 35px rgba(39, 76, 119, 0.12);

  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ========================================
   HERO
======================================== */

.hero-servicios {
  position: relative;

  width: 100%;
  height: 610px;

  overflow: hidden;
}

/* IMAGEN */

.hero-bg {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: translateZ(0);

  will-change: transform;
}

/* OVERLAY */

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(to right, #274c77, #6096ba);

  opacity: 0.65;

  z-index: 1;
}

/* CONTENIDO */

.hero-content {
  position: relative;

  z-index: 5;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* IZQUIERDA */

.hero-izquierdo {
  width: calc(100% - 976px);

  padding-left: 178px;
  padding-right: 20px;

  color: #e7ecef;
}

.hero-izquierdo h1 {
  margin-bottom: 25px;

  font-family: "ADLaM Display", system-ui;

  font-size: 40px;
  font-weight: 400;

  letter-spacing: 2px;
}

.hero-izquierdo p {
  max-width: 620px;

  font-size: 24px;
  font-weight: 500;

  line-height: 1.8;

  font-family: "Adamina", serif;
}

/* FORMA DERECHA */

.hero-forma {
  position: relative;

  width: 976px;
  height: 610px;

  flex-shrink: 0;
}

.hero-forma::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: url("data:image/svg+xml,%3Csvg width='868' height='610' viewBox='0 0 868 610' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M868 610H460.395L272.69 285L228.675 329L99.3018 105L60.8945 38.5L36.3857 63L0 0H868V610Z' fill='url(%23paint0_linear_247_14)'/%3E%3Cdefs%3E%3ClinearGradient id='paint0_linear_247_14' x1='434' y1='0' x2='434' y2='610' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23274C77'/%3E%3Cstop offset='1' stop-color='%236096BA'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ========================================
   SERVICIOS
======================================== */

.servicios {
  padding: 100px 0;
  background: #e7ecef;
}

.servicios-container {
  width: min(1280px, 92%);
  margin: auto;
}

/* ========================================
   TITULO
======================================== */

.servicios-title {
  max-width: 850px;
  margin: 0 auto 70px;
  text-align: center;
}

.section-badge {
  display: inline-block;

  padding: 10px 20px;

  margin-bottom: 20px;

  border-radius: 999px;

  background: rgba(163, 206, 241, 0.25);

  color: #274c77;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 1px;
}

.servicios-title h2 {
  margin-bottom: 18px;

  color: #274c77;

  font-size: 52px;
  font-weight: 800;
}

.servicios-title p {
  max-width: 720px;

  margin: auto;

  color: #8b8c89;

  font-size: 18px;
  line-height: 1.9;
}

/* ========================================
   GRID
======================================== */

.servicios-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 28px;
}

/* ========================================
   CARDS
======================================== */

.servicio-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  padding: 40px 28px;

  border-radius: 28px;

  background: linear-gradient(135deg, #274c77, #6096ba);

  box-shadow: 0 8px 25px rgba(39, 76, 119, 0.1);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);

  box-shadow: 0 15px 30px rgba(39, 76, 119, 0.14);
}

.servicio-icon {
  width: 80px;
  height: 80px;

  margin-bottom: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.12);

  color: #fff;

  font-size: 32px;
}

.servicio-card h3 {
  min-height: 58px;

  margin-bottom: 16px;

  color: #fff;

  font-size: 20px;
  font-weight: 700;

  line-height: 1.4;
}

.servicio-card p {
  flex: 1;

  margin-bottom: 28px;

  color: rgba(255, 255, 255, 0.95);

  font-size: 15px;
  line-height: 1.8;
}

.servicio-card button {
  border: none;

  padding: 14px 28px;

  border-radius: 999px;

  background: #fff;

  color: #274c77;

  font-size: 14px;
  font-weight: 700;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.servicio-card button:hover {
  transform: translateY(-2px);
}

/* ========================================
   MODAL
======================================== */

.modal-servicio {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.55);

  z-index: 9999;
}

.modal-card {
  position: relative;

  width: 900px;
  max-width: 95%;

  background: #fff;

  border-radius: 28px;

  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);

  animation: modalShow 0.18s ease-out;
}

@keyframes modalShow {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   HEADER MODAL
======================================== */

.modal-header {
  padding: 35px 40px;

  background: linear-gradient(135deg, #274c77, #6096ba);

  color: #fff;
}

.modal-badge {
  display: inline-block;

  padding: 8px 16px;

  margin-bottom: 18px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.15);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 1px;
}

.modal-header h2 {
  margin-bottom: 10px;

  font-size: 30px;
  font-weight: 700;
}

.modal-header p {
  max-width: 700px;

  font-size: 15px;
  line-height: 1.8;
}

/* ========================================
   BOTON CERRAR
======================================== */

.btn-close {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  color: #fff;

  font-size: 24px;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   BODY MODAL
======================================== */

.modal-body {
  padding: 40px;
}

.modal-body h3 {
  margin-bottom: 25px;

  color: #274c77;

  font-size: 20px;
  font-weight: 700;
}

/* ========================================
   LISTA
======================================== */

.servicios-lista {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
}

.item-servicio {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 15px 18px;

  border-radius: 16px;

  border: 1px solid #dde7ef;

  background: #f9fbfd;
}

.item-servicio::before {
  content: "✓";

  width: 28px;
  height: 28px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #a3cef1;

  color: #274c77;

  font-size: 13px;
  font-weight: 700;
}

.item-servicio span {
  color: #274c77;

  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   FOOTER MODAL
======================================== */

.modal-footer {
  padding: 0 40px 40px;
}

/* ========================================
   BOTON PRINCIPAL
======================================== */

.btn-main {
  width: 100%;

  border: none;

  padding: 16px;

  border-radius: 16px;

  background: linear-gradient(135deg, #274c77, #6096ba);

  color: #fff;

  font-size: 15px;
  font-weight: 700;

  transition: transform 0.25s ease;
}

.btn-main:hover {
  transform: translateY(-2px);
}

/* ========================================
   PANEL
======================================== */

.panel {
  position: fixed;

  top: 0;
  right: 0;

  width: 460px;
  height: 100vh;

  background: #fff;

  transform: translateX(100%);

  transition: transform 0.25s ease-out;

  z-index: 10000;

  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);
}

.panel.activo {
  transform: translateX(0);
}

.panel-box {
  height: 100%;

  overflow-y: auto;

  padding: 40px 30px;
}

/* ========================================
   HEADER PANEL
======================================== */

.panel-header {
  margin-bottom: 30px;
}

.panel-badge {
  display: inline-block;

  padding: 8px 16px;

  margin-bottom: 18px;

  border-radius: 999px;

  background: rgba(163, 206, 241, 0.2);

  color: #274c77;

  font-size: 12px;
  font-weight: 700;
}

.panel-header h3 {
  margin-bottom: 10px;

  color: #274c77;

  font-size: 28px;
  font-weight: 700;
}

.panel-header p {
  color: #8b8c89;

  font-size: 15px;
  line-height: 1.8;
}

/* ========================================
   CERRAR PANEL
======================================== */

.btn-close-panel {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: #eef4f8;

  color: #274c77;

  font-size: 24px;
}

/* ========================================
   FORMULARIO
======================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  color: #274c77;

  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid #d9e1e7;

  border-radius: 14px;

  background: #fff;

  color: #274c77;

  font-size: 14px;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6096ba;
}

#servicioTexto {
  background: #eef4f8;
  font-weight: 700;
}
