:root {
  --primary: #245a8d;
  --secondary: #1aa6a6;
  --dark: #1c2c3a;
  --soft: #f4f6f8;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.7;
}

.container {
  max-width: 1150px;
  margin: auto;
  padding: 0 24px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid #eee;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  z-index: 10;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 42px;
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  line-height: 1;
}

.hamburger {
  display: none;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav .btn-outline::after {
  display: none;
}

.btn-outline {
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: 10px;
}

.btn-outline:hover {
  background-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.nav a.btn-outline:hover {
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  padding: 140px 0;
  background: url('../img/hero-bg.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 44, 58, 0.75);
}

.hero-content {
  position: relative;
  color: white;
  max-width: 720px;
}

.hero h1 {
  font-size: 42px;
}

.btn-primary {
  /* background: var(--secondary); */
  background-color: transparent;
  color: #fff;
  padding: 10px 25px;

  border: 3px solid #fff;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 600;
  font-size: large;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  /* box-shadow: 0 8px 24px rgba(26, 166, 166, 0.35); */

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

.btn-primary:hover {
  border: 3px solid #149090;
  background: #149090;
  transform: translateY(-2px);
  /* box-shadow: 0 8px 24px rgba(26, 166, 166, 0.35); */

  /* box-shadow: 0 14px 32px rgba(26, 166, 166, 0.45); */
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(26, 166, 166, 0.3);
}

@media (max-width: 600px) {
  .hero .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  background: var(--dark);
  color: white;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;

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

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

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.value-card i {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 12px;
  display: inline-block;
}

.about-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  padding: 32px 28px;
  text-align: center;

  border-radius: 14px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);

  position: relative;

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

.service-card::after {
  content: '\f065';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  color: var(--primary);
  opacity: 0.4;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.service-card:hover::after {
  opacity: 0.9;
  transform: scale(1.2);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.service-card i {
  font-size: 26px;
  color: var(--secondary);

  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: rgba(26, 166, 166, 0.12);
}

.service-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  color: var(--dark);
}

.service-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-sidebar h2 {
  font-size: 28px;
  color: var(--dark);
  margin-bottom: 16px;
}

.contact-lead {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #444;
  font-size: 15px;
}

.contact-item i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
  width: 20px;
  flex-shrink: 0;
}

/* FORM */
.contact-form-wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #333;
  background: #f9fafc;
  border: 1.5px solid #e0e4ea;
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aab;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(36, 90, 141, 0.1);
}

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

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23245a8d' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn-submit {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  box-shadow: 0 6px 20px rgba(36, 90, 141, 0.25);
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-submit:hover {
  background: #1a4a76;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(36, 90, 141, 0.35);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(36, 90, 141, 0.2);
}

/* FORM SUCCESS */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.form-success i {
  font-size: 52px;
  color: var(--secondary);
}

.form-success p {
  font-size: 16px;
  color: #444;
  font-weight: 500;
}

/* SERVICE MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 44, 58, 0);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  transition: background 0.3s ease;
}

.modal-overlay.active {
  background: rgba(28, 44, 58, 0.6);
  pointer-events: all;
}

.modal-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  padding: 40px 36px 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.36, 0.64, 1),
    opacity 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--soft);
  color: #666;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.modal-close:hover {
  background: #e0e4ea;
  color: var(--dark);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #f0f2f5;
}

.modal-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(26, 166, 166, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon-wrap i {
  font-size: 22px;
  color: var(--secondary);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.modal-list li::before {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--secondary);
  margin-top: 5px;
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px;
  background: #0f1f33;
  color: #aaa;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;

  width: 60px;
  height: 60px;
  border-radius: 50%;

  background: #25d366;
  color: #ffffff;

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

  font-size: 30px;
  text-decoration: none;

  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);

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

.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* RESPONSIVE */

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
  /* Sections */
  .section {
    padding: 72px 0;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    max-height: 340px;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .contact-form-wrapper {
    padding: 32px 24px;
  }
}

/* --- Mobile (≤640px) --- */
@media (max-width: 640px) {
  /* Header: logo arriba, nav abajo */
  .header-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 14px 24px 12px;
    gap: 10px;
  }

  .nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    gap: 4px;
  }

  .nav a {
    margin-left: 0;
    padding: 6px 12px;
    font-size: 13px;
  }

  .nav a::after {
    display: none;
  }

  .nav .btn-outline {
    padding: 6px 14px;
    font-size: 13px;
  }

  .hamburger {
    display: none;
  }

  section {
    scroll-margin-top: 120px;
  }

  /* Hero */
  .hero {
    padding: 90px 0 70px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 15px;
  }

  .hero .btn-primary {
    display: flex;
    padding: 15px 0;
    width: 100%;
    justify-content: center;
  }

  /* Sections */
  .section {
    padding: 56px 0;
  }

  .section h2 {
    font-size: 22px;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .about-image {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 18px;
  }

  /* Contact */
  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  /* Modal */
  .modal-card {
    padding: 28px 20px 24px;
    border-radius: 14px;
  }

  .modal-header h3 {
    font-size: 17px;
  }

  /* WhatsApp float */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* --- Small mobile (≤400px) --- */
@media (max-width: 400px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 24px;
  }
}
