/* ============================================================
    1. VARIABLES Y RESET
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #001D3D;
  --blue-mid: #1565A8;
  --blue-light: #00A3E0;
  --yellow: #F39C12;
  --yellow-pale: #FEF9E7;
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --dark: #1A1A23;
  --blue-pale: #EAF3FB;
  --blue-tint: #D6E8F7;
  --text-body: #606060;
  --text-muted: #000000;
  --border: #E2E8F0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ============================================================
    2. HEADER
============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-wrap img {
  width: 55px;
  height: 65px;
  object-fit: contain;
  margin-left: 10px;
}

.logo-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
  margin-left: -5px;
  line-height: 1;
}

.logo-name span {
  color: var(--yellow);
}

.brand-lockup,
.footer-brand {
  display: flex;
  flex-direction: column;
}

.logo-tagline {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--blue-mid);
}

.btn-nav {
  background: var(--blue-mid);
  color: white !important;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.99rem !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-nav:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

/* ============================================================
    3. HERO
============================================================ */
.hero-section {
  background: var(--white);
  margin-top: 60px;
  margin-bottom: -10%;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2.5rem 5rem;
  width: 1230px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--blue-tint);
}

.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--yellow);
}

.hero-desc {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2.25rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue-mid);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 101, 168, 0.25);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 355px;
  border-radius: 28px;
  overflow: hidden;
  transform: translateY(-8px);
  animation: floatCarousel 10s ease-in-out infinite;
  background: #000000;
}

@keyframes floatCarousel {

  0%,
  100% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(8px);
  }
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(10, 61, 107, 0.15);
}

.carousel-arrow.left {
  left: 14px;
}

.carousel-arrow.right {
  right: 14px;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}

.carousel-dot.active {
  background: white;
  width: 22px;
  border-radius: 50px;
}



/* ============================================================
    5. SERVICIOS
============================================================ */
.services {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: -20px;
}

.section-eyebrow {
  font-size: .90rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .75rem;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.section-h {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--blue-dark);
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: white;
  border: 5px solid var(--border);
  border-radius: 18px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(21, 101, 168, 0.12);
  border-color: var(--blue-tint);
}

.svc-img {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.svc-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
}

.svc-card:hover .svc-img img {
  transform: scale(1.05);
}

.svc-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.20rem;
  color: var(--blue-mid);
  margin-bottom: .6rem;
}

.svc-card h3 a {
  color: var(--blue-mid);
  text-decoration: none;
}

.svc-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: .1rem;
}

.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-mid);
  text-decoration: none;
  transition: gap 0.25s, color 0.25s;

  &:hover {
    gap: 10px;
    color: var(--blue-light);
  }
}

/* ============================================================
    6. NOSOTROS
============================================================ */
.why {
  background: var(--blue-dark);
  padding: 2rem 2rem;
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.why .section-h {
  color: white;
}

.why .section-eyebrow {
  color: #7EC8E3;
}

.why .section-eyebrow::before {
  background: var(--yellow);
}

.why-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.why-item:last-child {
  border-bottom: none;
}

.why-icon {
  width: 36px;
  height: 36px;
  background: rgba(13, 122, 191, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-icon svg {
  width: 16px;
  height: 16px;
  stroke: #7EC8E3;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.why-item-text span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.why-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-big-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.why-big-num {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  flex-shrink: 0;
}

.why-big-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.why-big-label strong {
  display: block;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* ============================================================
    7. CONTACTO
============================================================ */
.contact-wrap {
  padding: 4rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info>p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.cinfo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cinfo-item:last-of-type {
  border-bottom: none;
}

.cinfo-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-tint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cinfo-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue-mid);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cinfo-text small {
  display: block;
  font-size: 0.90rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cinfo-text p {
  font-size: 1rem;
  color: var(--blue-dark);
  font-weight: 500;
  margin: 0;
}

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  transform: translateY(1rem);

}

.contact-form h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.1rem;
  margin-top: -1.2rem;
}


.contact-form>p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}


.f-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.f-group input,
.f-group select,
.f-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  transform: translateY(-0.35rem);

}

.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus {
  border-color: var(--blue-mid);
}

.f-group input.is-invalid,
.f-group select.is-invalid,
.f-group textarea.is-invalid {
  border-color: #DC2626;
  background: #FFF7F7;
}

.f-group input::placeholder,
.f-group textarea::placeholder {
  color: #B0C0CC;
}

.f-group textarea {
  resize: vertical;
  min-height: 110px;
}

.field-error {
  display: block;
  min-height: 1rem;
  margin-top: -0.05rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: #DC2626;
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--blue-mid);
  text-align: center;
  margin: 0.5rem 0 0;
}

.hidden-field {
  display: none;
}

.btn-submit {
  width: 100%;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  margin-top: 0.7px;
  margin-bottom: -1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-submit:hover {
  background: #E67E22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

/* ============================================================
    8. FOOTER
============================================================ */
footer {
  background: var(--blue-dark);
  padding: 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner .logo-name {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.footer-brand {
  text-decoration: none;
}

.footer-logo .logo-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: .70rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.3);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
}

.social-links img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
    9. ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.hero-eyebrow {
  animation: fadeUp 0.5s ease both;
}

.hero h1 {
  animation: fadeUp 0.5s 0.1s ease both;
}

.hero-desc {
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-btns {
  animation: fadeUp 0.5s 0.3s ease both;
}

.hero-visual {
  animation: fadeUp 0.5s 0.2s ease both;
}

/* ============================================================
   10. RESPONSIVE
============================================================ */

/* ---------- Laptop pequeña ---------- */

@media (max-width:1200px) {

  .hero {
    width: 100%;
    padding: 4rem 2rem;
    gap: 2rem;
  }

  .services,
  .contact-wrap,
  .why-inner,
  .footer-inner {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ---------- Tablet ---------- */

@media (max-width:992px) {

  header {
    padding: 0 1.5rem;
  }

  nav {
    gap: 1.2rem;
  }

  .logo-name {
    font-size: 1.7rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: 7rem;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc {
    max-width: 700px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    padding-top: 0;
  }

  .hero-carousel {
    max-width: 700px;
  }

  .why-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

}

/* ---------- Tablet pequeña ---------- */

@media (max-width:768px) {

  header {
    height: auto;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    margin-top: 120px;
    margin-bottom: 0;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .hero-carousel {
    height: 300px;
  }

  .services {
    padding: 4rem 1.5rem;
  }

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

  .why {
    padding: 4rem 1.5rem;
  }

  .contact-wrap {
    padding: 4rem 1.5rem;
  }

  .f-row {
    grid-template-columns: 1fr;
  }

}

/* ---------- Celulares ---------- */

@media (max-width:576px) {

  .logo-wrap {
    gap: 8px;
  }

  .logo-wrap img {
    width: 42px;
    height: 50px;
    margin-left: 0;
  }

  .logo-name {
    font-size: 1.4rem;
  }

  .logo-tagline {
    font-size: .55rem;
  }

  nav {
    gap: .8rem;
  }

  nav a {
    font-size: .9rem;
  }

  .btn-nav {
    padding: .55rem 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-carousel {
    height: 220px;
    border-radius: 18px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .section-h {
    font-size: 2rem;
  }

  .section-sub {
    font-size: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-copy {
    font-size: .8rem;
  }

}
