/* === VARIABLES === */
:root {
  --white: #ffffff;
  --text-dark: #333;
  --aqua-dark: #4b7f92;
  --tan: #bb9873;
  --font-main: 'Inter', sans-serif;
  --bg-light: #f8f4ee;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: linear-gradient(to bottom, #fce8dc, #cbe8f3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === NAVBAR === */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid #eee;
  padding: 0.8rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--aqua-dark);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--aqua-dark);
}

/* === GLOBO DE IDIOMA === */
.language-icon {
  font-size: 1.3rem;
  color: var(--aqua-dark);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.language-icon:hover {
  background-color: var(--tan);
  color: var(--white);
}

section.contact-page {
  flex: 1;
  display: flex;
  flex-direction: row;
  padding: 5vh 8vw;
  margin-top: 100px; /* Usa margin en lugar de padding */
  align-items: flex-start; /* <-- Cambiado para evitar stretch vertical */
  justify-content: space-between;
  background-image: url('https://www.transparenttextures.com/patterns/sandpaper.png');
  position: relative;
  overflow: hidden;
}

/* === ANIMATED WAVE === */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100px;
  background: url('https://svgshare.com/i/12dE.svg') repeat-x;
  background-size: contain;
  animation: waveAnimation 15s linear infinite;
  opacity: 0.3;
}

@keyframes waveAnimation {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === TEXT SIDE === */
.contact-text {
  flex: 1;
  padding-right: 3rem;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--aqua-dark);
}

.contact-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-text ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.contact-text ul li {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-text a {
  color: var(--tan);
  text-decoration: none;
}

/* === FORM SIDE === */
.contact-form {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: inline-block;
  align-self: flex-start; /* <-- Hace que el card se ajuste al contenido */
  width: 48%; /* O puedes usar max-width si prefieres algo más flexible */
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

input, select, textarea {
  flex: 1;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: var(--white);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--aqua-dark);
}

button {
  background-color: var(--aqua-dark);
  color: var(--white);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: flex-end;
}

button:hover {
  background-color: #a47c5d;
}

/* === RESPONSIVE === */
@media (max-width: 950px) {
  section.contact-page {
    flex-direction: column;
    padding: 4vh 5vw;
  }

  .contact-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .form-row {
    flex-direction: column;
  }

  button {
    align-self: center;
  }

  .feature-cards {
    flex-direction: column;
  }

  .contact-form {
    width: 100%;
  }
}

/* === FEATURE CARDS === */
.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px); /* efecto glass */
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1 1 calc(33.333% - 1rem);
  min-width: 260px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 228, 228, 0.6);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Agrega esto justo después */
.icon-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--aqua-dark);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.5;
}

.success-message,
.error-message {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.success-message {
  color: green;
}

.error-message {
  color: red;
}

/* === FOOTER === */
.footer-small {
  background-color: #fff;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--aqua-dark);
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-social a img {
  height: 24px;
  margin: 0 0.25rem;
  opacity: 0.85;
  transition: opacity 0.2s ease-in-out;
}

.footer-social a img:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #999;
}

.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  position: relative;
  background: transparent;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* ======== MATCH ABOUT NAVBAR ======== */

/* Contenedor genérico como en About */
.container{ max-width:1200px; margin:0 auto; padding:0 24px; }

/* Navbar: mismo alto/padding que About */
.navbar{
  background:#fff;
  border-bottom:1px solid #eee;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
  position:fixed; top:0; left:0; right:0;
  z-index:1000;
  padding:0;                 /* <-- igual que About (sin padding en header) */
}
.navbar-content{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:12px 0;  /* <-- igual que About */
}

/* Marca */
.logo{ height:42px; width:auto; object-fit:contain; display:block; }
.brand-name{ font-weight:800; color:#4b7f92; } /* var(--aqua-dark) */

/* Navegación desktop */
.main-nav ul{ display:flex; gap:28px; list-style:none; }
.main-nav a{ color:#5c6b71; text-decoration:none; font-weight:600; }
.main-nav a:hover, .main-nav a.active{ color:#4b7f92; }

/* Grupo derecha (globo + botón) */
.nav-right-cluster{ display:flex; align-items:center; gap:16px; }

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle{ display:none; background:none; border:none; color:#4b7f92; font-size:22px; cursor:pointer; padding:5px; line-height:1; z-index:3000; }
.nav-toggle .fa-times{ display:none; }

/* Compensar navbar fija (igual que About) */
body{ padding-top:78px; }

/* ---------- móvil igual al About ---------- */
@media (max-width:768px){

  /* Botón visible en móvil */
  .nav-toggle{ display:block; }

  /* Hacer el overlay del menú idéntico */
  .main-nav{
    position:fixed; inset:0;
    width:100vw; height:100dvh;
    background:rgba(255,255,255,.95);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    padding: calc(env(safe-area-inset-top,0px) + 16px) 24px 24px;
    overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
    opacity:0; visibility:hidden; transform:translateY(-4%);
    transition:opacity .35s ease, transform .35s ease, visibility .35s;
    z-index:2200;
  }
  @supports (backdrop-filter:blur(10px)){
    .main-nav{ background:rgba(255,255,255,.85); backdrop-filter:blur(10px); }
  }

  .main-nav ul{
    flex-direction:column; gap:28px; padding:0; margin:0; min-height:min(72vh,560px); text-align:center;
  }
  .main-nav a{ font-size:22px; font-weight:800; color:#4b7f92; }

  /* Igual que About: ocultar globo en móvil */
  .nav-right-cluster .language-icon{ display:none; }

  /* Estado abierto (lo pone JS) */
  .navbar.nav-open .main-nav{ opacity:1; visibility:visible; transform:translateY(0); }
  .navbar.nav-open .nav-toggle .fa-bars{ display:none; }
  .navbar.nav-open .nav-toggle .fa-times{ display:inline-block; }

  body.nav-open{ overflow:hidden; }
}
