*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #102a43;
  background-color: #f4f7fb;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 251, 0.96);
  border-bottom: 1px solid rgba(15, 116, 179, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__brand:hover {
  opacity: 0.9;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0f74b3;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-text__main {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f74b3;
}

.logo-text__sub {
  font-size: 0.75rem;
  color: #5c6c80;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav__link {
  font-size: 0.95rem;
  color: #2f3b52;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__link:hover {
  color: #0f74b3;
  border-color: rgba(15, 116, 179, 0.4);
}

.nav__link--primary {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: none;
  background: #ff4d6a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(184, 30, 70, 0.35);
}

.nav__link--primary:hover {
  background: #e03956;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(184, 30, 70, 0.45);
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.26rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.theme-toggle {
  margin-left: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #f4f7ff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header__menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #102a43;
  border-radius: 999px;
}

.hero {
  padding: 4.5rem 0 4rem;
  animation: fadeIn 0.7s ease-out;
  position: relative;
  overflow: hidden;
  color: #f8fbff;
}

.hero:not(.has-section-bg) {
  background:
    url('../img/squiggly-line-png-16.png') left bottom / 260px auto no-repeat,
    url('../img/squiggly-line-png-16.png') right top / 260px auto no-repeat,
    radial-gradient(circle at top left, rgba(15, 116, 179, 0.45) 0, transparent 55%),
    linear-gradient(140deg, #021023 0, #041b33 45%, #021023 100%);
}

/* Fondos de sección desde ACF: imagen + overlay para legibilidad */
.hero.has-section-bg,
.section.has-section-bg,
.hero-features.has-section-bg,
.section--why.has-section-bg,
.section--alt.has-section-bg,
.contact.has-section-bg {
  position: relative;
  background-color: #021023;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.has-section-bg::before,
.section.has-section-bg::before,
.hero-features.has-section-bg::before,
.section--why.has-section-bg::before,
.section--alt.has-section-bg::before,
.contact.has-section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(2, 16, 35, 0.85) 0%, rgba(4, 27, 51, 0.8) 50%, rgba(2, 16, 35, 0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero.has-section-bg .container,
.section.has-section-bg .container,
.hero-features.has-section-bg .container {
  position: relative;
  z-index: 1;
}

/* Texto claro en paneles con imagen de fondo */
.hero-features.has-section-bg h2 {
  color: #f4f7fb;
}

.section--why.has-section-bg .section__content h2,
.section--why.has-section-bg .section__content p,
.section--why.has-section-bg .section__lead {
  color: #e2ecf7;
}

.section--alt.has-section-bg .section__header h2 {
  color: #ffffff;
}

.section--alt.has-section-bg .section__header p {
  color: #d2e4f8;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(4, 26, 48, 0.72);
  border: 1px solid rgba(188, 214, 243, 0.4);
  color: #f4f9ff;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 1rem;
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  color: #d2e4f8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.06s ease;
}

.btn--primary {
  background: #0f74b3;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(4, 87, 143, 0.22);
}

.btn--primary:hover {
  background: #0a5a8c;
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(4, 87, 143, 0.3);
}

.btn--ghost {
  background: transparent;
  color: #0f74b3;
  border-color: rgba(15, 116, 179, 0.4);
}

.btn--ghost:hover {
  background: rgba(15, 116, 179, 0.06);
}

.btn--full {
  width: 100%;
}

.hero__highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.hero__highlight {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(4, 20, 39, 0.7);
  border: 1px solid rgba(188, 214, 243, 0.3);
}

.hero__highlight-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9cb4cf;
  margin-bottom: 0.2rem;
}

.hero__highlight-value {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
}

@media (min-width: 901px) {
  .hero__media {
    justify-content: flex-end;
  }
}

/* ——— Carruseles (hero fade + servicios/proyectos slide) ——— */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.carousel--cards {
  max-width: none;
  margin-top: 0.25rem;
}

.carousel__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(188, 214, 243, 0.45);
  background: rgba(4, 25, 44, 0.85);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(1, 8, 21, 0.35);
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.carousel__arrow:hover {
  background: rgba(15, 116, 179, 0.95);
  transform: scale(1.05);
}

.carousel__arrow:focus-visible {
  outline: 2px solid #7ec4ff;
  outline-offset: 2px;
}

.carousel--cards .carousel__arrow {
  background: #ffffff;
  color: #0f74b3;
  border-color: rgba(15, 116, 179, 0.25);
  box-shadow: 0 4px 16px rgba(15, 60, 115, 0.1);
}

.carousel--cards .carousel__arrow:hover {
  background: #0f74b3;
  color: #ffffff;
}

.carousel--projects .carousel__arrow {
  background: #f4f9ff;
  color: #0f74b3;
}

.carousel--projects .carousel__arrow:hover {
  background: #0f74b3;
  color: #ffffff;
}

/* Hero: fade entre imágenes (bloque grande) */
.carousel--hero {
  max-width: min(100%, 560px);
  width: 100%;
}

.hero__carousel-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 360px;
  aspect-ratio: 4 / 3;
  max-height: min(56vh, 520px);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(1, 8, 21, 0.8);
  border: 3px solid rgba(218, 238, 255, 0.55);
}

.hero__carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.hero__carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel--hero .hero__photo-wrapper {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 28px;
  margin: 0;
}

.carousel--hero .hero__photo {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.carousel--hero .carousel__arrow {
  position: relative;
  margin-top: 0;
}

/* Servicios / proyectos: ~3 cards visibles (JS fija ancho por slide) */
.carousel__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.carousel__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.carousel--cards .carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Mismo aspecto que las cards en grid: padding, tipografía y sombra heredan de .card / .project */
.carousel--cards .card,
.carousel--cards .project {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Imagen con altura generosa (antes en grid crecía con el ancho; aquí fijamos mínimo para cards más altas) */
.carousel--cards .card__image,
.carousel--cards .project__image {
  width: 100%;
  min-height: 168px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.carousel--cards .project__image {
  margin-bottom: 0.8rem;
  border-radius: 10px;
}

.carousel--cards .card p,
.carousel--cards .project p {
  flex: 1;
}

@media (max-width: 899px) {
  .carousel--cards .carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

.hero__photo-wrapper {
  position: relative;
  max-width: 380px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(1, 8, 21, 0.8);
  border: 3px solid rgba(218, 238, 255, 0.55);
}

.hero__photo {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease-out;
  object-fit: cover;
}

.hero__photo-wrapper:hover .hero__photo {
  transform: scale(1.05);
}

.hero-features {
  margin-top: 1.5rem;
  margin-bottom: 1.8rem;
}

.hero-features__heading {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f4f7fb;
  letter-spacing: 0.02em;
}

.hero-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.hero-feature {
  background: #ffffff;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  box-shadow: 0 15px 40px rgba(12, 46, 85, 0.15);
  border: 1px solid rgba(15, 116, 179, 0.1);
}

.hero-feature__content h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.hero-feature__content p {
  margin: 0;
  font-size: 0.86rem;
  color: #4a5a6d;
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 80px;
}

.section--alt {
  background: #ffffff;
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.section__header p {
  margin: 0;
  color: #5c6c80;
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.section__grid--why {
  align-items: center;
}

.section__content h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.section__lead {
  font-size: 1rem;
  color: #4a5a6d;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.section__content p {
  color: #5c6c80;
}

.section__content p + p {
  margin-top: 0.6rem;
}

.section__highlights {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.section--why {
  background: #ffffff;
}

/* Panel Servicios: mismo fondo que el hero (si no hay imagen ACF) */
#servicios:not(.has-section-bg) {
  background:
    url('../img/squiggly-line-png-16.png') left bottom / 260px auto no-repeat,
    url('../img/squiggly-line-png-16.png') right top / 260px auto no-repeat,
    radial-gradient(circle at top left, rgba(15, 116, 179, 0.45) 0, transparent 55%),
    linear-gradient(140deg, #021023 0, #041b33 45%, #021023 100%);
  color: #f8fbff;
}

/* Texto por defecto (tema claro) */
#servicios .section__header h2 {
  color: #102a43;
}

#servicios .section__header p {
  color: #5c6c80;
}

/* Solo cuando el panel servicios tiene imagen/fondo oscuro ACF */
#servicios.has-section-bg .section__header h2 {
  color: #ffffff;
}

#servicios.has-section-bg .section__header p {
  color: #d2e4f8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.why-card {
  background: #f4f9ff;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(15, 116, 179, 0.15);
  box-shadow: 0 12px 30px rgba(15, 60, 115, 0.08);
}

.why-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.why-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #4a5a6d;
}

.pill-card {
  background: #f4f9ff;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(15, 116, 179, 0.14);
}

.pill-card--outline {
  background: #ffffff;
}

.pill-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.pill-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4a5a6d;
}

.pill-card li + li {
  margin-top: 0.25rem;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid rgba(15, 116, 179, 0.1);
  box-shadow: 0 10px 25px rgba(15, 60, 115, 0.06);
}

.card__image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a5a6d;
}

.project {
  position: relative;
  background: #f4f9ff;
  border-radius: 12px;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid rgba(15, 116, 179, 0.12);
}

.project__image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.project__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #0f74b3;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
}

.project h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.project p {
  margin: 0;
  font-size: 0.9rem;
  color: #4a5a6d;
}

.section__note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: #7a8798;
}

.contact {
  background: linear-gradient(135deg, #0b5b8f 0, #0f74b3 30%, #0b5b8f 100%);
  color: #f9fbff;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.contact .section__lead {
  color: #dfe9f4;
  margin-bottom: 1.5rem;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact__item {
  font-size: 0.95rem;
}

.contact__label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #c8d5e6;
  margin-bottom: 0.1rem;
}

.contact__value {
  font-weight: 500;
}

.contact__value:hover {
  text-decoration: underline;
}

.contact__hint {
  display: block;
  font-size: 0.8rem;
  color: #d0e2f7;
  margin-top: 0.15rem;
}

.contact__item--social .contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.contact__socials a {
  font-size: 0.9rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 248, 255, 0.28);
}

.contact__socials a:hover {
  background: rgba(244, 248, 255, 0.1);
}

.contact__form-wrapper {
  background: rgba(6, 32, 55, 0.18);
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid rgba(220, 235, 255, 0.2);
  backdrop-filter: blur(10px);
}

.contact__form {
  background: rgba(5, 26, 45, 0.85);
  border-radius: 10px;
  padding: 1.3rem 1.4rem 1.4rem;
  position: relative;
}

.contact__form h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

/* Contact Form 7: campos más juntos (menos aire entre grupos) */
.contact__form .wpcf7-form > p {
  margin: 0 0 0.4rem;
}

.contact__form .wpcf7-form .form__group {
  margin-bottom: 0.45rem;
}

.contact__form .wpcf7-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
  color: #d7e3f4;
  line-height: 1.3;
}

.contact__form .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0;
}

.contact__form .wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.contact__form .wpcf7-form input[type="text"],
.contact__form .wpcf7-form input[type="email"],
.contact__form .wpcf7-form input[type="tel"],
.contact__form .wpcf7-form textarea,
.contact__form .wpcf7-form select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(178, 197, 220, 0.5);
  background: rgba(5, 20, 38, 0.95);
  color: #f4f7fb;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.contact__form .wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form .wpcf7-form input:focus,
.contact__form .wpcf7-form textarea:focus {
  outline: none;
  border-color: #7ec4ff;
  box-shadow: 0 0 0 1px rgba(126, 196, 255, 0.4);
}

.contact__form .wpcf7-form input[type="submit"] {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #1a6fb8 0%, #0d4a7a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.35rem;
  width: 100%;
}

.contact__form .wpcf7-form .form__footnote,
.contact__form .wpcf7-form p.form__footnote {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #9fb4ce;
}

.contact__form .wpcf7-form input[type="submit"]:hover {
  filter: brightness(1.08);
}

/* Spinner nativo de CF7 centrado sobre el botón durante el envío */
.contact__form .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.contact__form .wpcf7-form.submitting input[type="submit"] {
  color: transparent;
  cursor: default;
}

.contact__form .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border-width: 1px;
}

.contact__form .wpcf7-mail-sent-ok {
  background: rgba(108, 230, 174, 0.09);
  border-color: rgba(108, 230, 174, 0.45);
  color: #cfeee0;
}

.contact__form .wpcf7-validation-errors,
.contact__form .wpcf7-mail-sent-ng {
  background: rgba(255, 77, 106, 0.08);
  border-color: rgba(255, 77, 106, 0.4);
  color: #ffd0d6;
}

.form__group {
  margin-bottom: 0.9rem;
}

.contact__form .form__group {
  margin-bottom: 0.45rem;
}

.form__group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #d7e3f4;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(178, 197, 220, 0.5);
  background: rgba(5, 20, 38, 0.95);
  color: #f4f7fb;
  font-family: inherit;
  font-size: 0.9rem;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: #7ec4ff;
  box-shadow: 0 0 0 1px rgba(126, 196, 255, 0.4);
}

.form__group select {
  cursor: pointer;
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__footnote {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  color: #9fb4ce;
}

.form__errors {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.4);
  font-size: 0.8rem;
  color: #ffd0d6;
}

.field-error {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #ff9aa9;
}

.form__success {
  margin: 0 0 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  background: rgba(108, 230, 174, 0.09);
  border: 1px solid rgba(108, 230, 174, 0.45);
  font-size: 0.8rem;
  color: #cfeee0;
}

.footer {
  padding: 1.4rem 0 1.6rem;
  background: #07111d;
  color: #94a2b5;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  font-size: 0.86rem;
}

.footer__brand {
  color: #c4d0e0;
}

/* ANIMACIONES SUAVES */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.observe {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes issmed-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-features {
    margin-top: -1.5rem;
  }

  .section__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(244, 247, 251, 0.98);
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(15, 116, 179, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav.nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    padding: 0.35rem 0;
  }

  .header__menu-toggle {
    display: inline-flex;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .header__inner {
    height: 64px;
  }

  .carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .carousel--hero {
    gap: 0.2rem;
  }

  .hero {
    padding: 3rem 0 3.4rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .hero__card {
    padding: 1.5rem 1.3rem;
  }

  .contact__form-wrapper {
    padding: 1.1rem;
  }

  .contact__form {
    padding: 1.1rem 1.1rem 1.2rem;
  }
}

