/* ========================================
   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;
}

a {
  text-decoration: none;
}

: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;
}

/* ========================================
   CONTACTO
======================================== */

.contacto {
  padding: 100px 0 90px;

  background: #e7ecef;
}

.contacto-container {
  width: min(1280px, 92%);

  margin: auto;
}

/* TITULO */

.contacto-titulo {
  margin-bottom: 80px;

  text-align: center;

  color: #274c77;

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

  letter-spacing: 1px;
}

/* GRID */

.contacto-grid {
  display: grid;

  grid-template-columns: 640px 1fr;

  align-items: center;

  justify-content: center;

  gap: 120px;
}

/* MAPA */

.contacto-mapa {
  width: 640px;
  height: 430px;

  overflow: hidden;

  border-radius: 48px;

  border: 8px solid #274c77;

  background: #fff;

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

.contacto-mapa iframe {
  width: 100%;
  height: 100%;

  border: none;
}

/* INFO */

.contacto-info {
  display: flex;
  flex-direction: column;

  align-items: center;
}

/* REDES */

.contacto-social {
  display: flex;

  gap: 34px;

  margin-bottom: 42px;
}

.contacto-social a {
  width: 72px;
  height: 72px;

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

  border-radius: 50%;

  background: #274c77;

  color: #e7ecef;

  font-size: 34px;

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

.contacto-social a:hover {
  background: #6096ba;

  transform: translateY(-4px);
}

/* LOGO */

.contacto-logo {
  width: 250px;

  margin-bottom: 40px;
}

/* BOTON */

.btn-virtual {
  display: inline-flex;

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

  padding: 18px 42px;

  border-radius: 14px;

  background: #274c77;

  color: #e7ecef;

  font-family: "Adamina", serif;

  font-size: 24px;

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

.btn-virtual:hover {
  background: #6096ba;

  transform: translateY(-3px);
}

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

.contact-form {
  padding: 30px 0 120px;

  background: #e7ecef;
}

.form-card {
  width: min(1280px, 92%);

  margin: auto;

  display: grid;

  grid-template-columns: 58% 42%;

  overflow: hidden;

  border-radius: 32px;

  box-shadow: 0 20px 50px rgba(39, 76, 119, 0.12);

  background: #fff;
}

/* ========================================
   IZQUIERDA
======================================== */

.form-left {
  padding: 55px 60px;

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

/* ========================================
   FORM
======================================== */

.form-left form {
  width: 100%;
}

/* ========================================
   GRUPOS
======================================== */

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

.form-group label {
  display: block;

  margin-bottom: 12px;

  color: #fff;

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

  letter-spacing: 0.5px;
}

/* ========================================
   INPUTS
======================================== */

.form-group input {
  width: 100%;
  height: 58px;

  border: none;

  border-radius: 14px;

  background: #e7ecef;

  padding: 0 18px;

  color: #274c77;

  font-size: 15px;

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

.form-group input:focus {
  outline: none;

  box-shadow: 0 0 0 3px rgba(163, 206, 241, 0.35);
}

/* ========================================
   MENSAJE
======================================== */

.form-left > form > label {
  display: block;

  margin-bottom: 12px;

  color: #fff;

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

/* ========================================
   FILA MENSAJE
======================================== */

.mensaje-row {
  display: flex;

  gap: 24px;

  align-items: flex-end;
}

/* ========================================
   TEXTAREA
======================================== */

.mensaje-row textarea {
  flex: 1;

  height: 130px;

  border: none;

  border-radius: 14px;

  background: #e7ecef;

  padding: 18px;

  resize: none;

  color: #274c77;

  font-size: 15px;
}

.mensaje-row textarea:focus {
  outline: none;

  box-shadow: 0 0 0 3px rgba(163, 206, 241, 0.35);
}

/* ========================================
   BOTON ENVIAR
======================================== */

.btn-enviar {
  width: 170px;
  height: 130px;

  flex-shrink: 0;

  border: 3px solid #e7ecef;

  border-radius: 18px;

  background: transparent;

  color: #fff;

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

  letter-spacing: 1px;

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

.btn-enviar:hover {
  background: #e7ecef;

  color: #274c77;

  transform: translateY(-3px);
}

/* ========================================
   DERECHA
======================================== */

.form-right {
  position: relative;
  overflow: hidden;
}

/* ========================================
   IMAGEN
======================================== */

.form-right img {
  width: 100%;
  height: 635px;
  background: linear-gradient(
    270deg,
    rgba(96, 150, 186, 1) 0%,
    rgba(39, 76, 119, 1) 100%
  );
  object-fit: cover;
}

/* ========================================
   MEJORAS GENERALES UX/UI
======================================== */

/* Suaviza transiciones globales */
a,
button,
input,
textarea {
  transition: all 0.25s ease;
}

/* ========================================
   EFECTO SUAVE EN TARJETAS
======================================== */

.contacto-mapa,
.form-card {
  transform: translateZ(0);
  will-change: transform;
}

/* Hover suave del mapa */
.contacto-mapa {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contacto-mapa:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(39, 76, 119, 0.18);
}

/* ========================================
   BOTONES PREMIUM HOVER
======================================== */

.btn-virtual,
.btn-enviar {
  position: relative;
  overflow: hidden;
}

/* efecto brillo */
.btn-virtual::before,
.btn-enviar::before {
  content: "";

  position: absolute;
  top: 0;
  left: -100%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );

  transition: all 0.6s ease;
}

.btn-virtual:hover::before,
.btn-enviar:hover::before {
  left: 100%;
}

/* ========================================
   SOCIAL ICON MICRO INTERACTION
======================================== */

.contacto-social a {
  position: relative;
  overflow: hidden;
}

.contacto-social a::after {
  content: "";

  position: absolute;
  inset: 0;

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

  transform: scale(0);

  border-radius: 50%;

  transition: transform 0.25s ease;
}

.contacto-social a:hover::after {
  transform: scale(1);
}

/* ========================================
   INPUT FOCUS MÁS PREMIUM
======================================== */

.form-group input:focus,
.mensaje-row textarea:focus {
  box-shadow:
    0 0 0 3px rgba(163, 206, 241, 0.45),
    0 10px 25px rgba(39, 76, 119, 0.12);
}

/* ========================================
   TITULO DETALLE (SUBRAYADO MODERNO)
======================================== */

.contacto-titulo {
  position: relative;

  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.contacto-titulo::after {
  content: "";

  display: block;

  width: 120px;
  height: 4px;

  margin: 18px auto 0;

  border-radius: 999px;

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

/* ========================================
   DETALLE DE TARJETA FORM
======================================== */

.form-card {
  position: relative;
}

/* sombra inferior suave extra */
.form-card::after {
  content: "";

  position: absolute;
  bottom: -20px;
  left: 50%;

  transform: translateX(-50%);

  width: 80%;
  height: 40px;

  background: rgba(39, 76, 119, 0.12);

  filter: blur(25px);

  z-index: -1;
}
