/* ===== Variables de color ===== */
:root {
  --dark-blue: #071739;
  --mid-blue: #4B6382;
  --light-blue: #a4b5c4;
  --soft-gray: #CDD5DB;
  --contrast: #A68868;
  --beige-text: #E3C39D;
  --font-main: 'Cormorant Garamond', serif;
  --font-secondary: 'Inter', sans-serif;
}

/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 1.1rem;/* ===== con este cambias el tamaño de la fuente de toda la pag ===== */
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-secondary);
  background-color: var(--dark-blue);
  color: var(--beige-text);
  line-height: 1.6;
}

/* ===== Navbar ===== */
header {
  background: var(--mid-blue);
  padding: 1rem 2rem;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar .logo {
  font-family: var(--font-main);
  font-size: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--beige-text);
  text-decoration: none;
  font-family: var(--font-secondary);
}
.nav-links .nav-contact {
  background: var(--contrast);
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  color: #fff;
}
.logo a {
  text-decoration: none;
  color: inherit;
  font-family: var(--font-main);
  font-size: 1.5rem;
}
.logo a {
  display: inline-block;
  padding: 0rem 0.8rem;
  border-radius: 5px;
  text-decoration: none;
  color: var(--beige-text);
  font-family: var(--font-main);
  font-size: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Efecto al pasar el dedo (hover en desktop, active en móvil) */
.logo a:hover,
.logo a:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 60vh;
  background: url("assets/trato1.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-main);
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero p {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
}

/* ===== Sections ===== */
.section {
  padding: 3rem 2rem;
  text-align: center;
}
.section h2 {
  font-family: var(--font-main);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.services {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.service-card {
  background: var(--mid-blue);
  padding: 1.5rem;
  border-radius: 8px;
  width: 250px;
}
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link .service-card {
  transition: transform 0.2s ease;
}

.service-card-link:hover .service-card {
  transform: scale(1.03);
  cursor: pointer;
}

/* ===== Contact ===== */
.contact ul {
  list-style-type: disc; /* Puntitos clásicos */
  list-style-position: inside; /* Puntito alineado con el texto */
  padding-left: 1.5rem; /* Espacio desde el borde izquierdo */
  margin-top: 1rem; /* Separación desde el párrafo anterior */
  margin-bottom: 1rem;
  color: var(--beige-text);
  font-size: 1rem;
  line-height: 1.6;
}

.contact li {
  margin-bottom: 0.5rem; /* Espacio entre ítems */
}
.inline-list {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center; /* 🔥 Esto la centra horizontalmente */
}

.inline-list li {
  position: relative;
  padding-right: 1.2rem;
}
.contact {
  position: relative;
  padding: 3rem 2rem;
  z-index: 1;
  overflow: hidden;
}

/* Fondo con imagen oscurecida */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/contactanos1.jpg"); /* Reemplazá con tu imagen */
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Ajustá según el contraste que quieras */
  z-index: 0;
}

/* Aseguramos que el contenido esté por encima */
.contact > * {
  position: relative;
  z-index: 2;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
  margin: 2rem auto;
}
.contact label {
  font-size: 1rem;
  color: var(--beige-text);
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-family: var(--font-secondary);
}
.contact textarea {
  height: 10rem; /* o 10rem si preferís usar unidades relativas */
  resize: vertical; /* permite al usuario agrandarlo si quiere */
}
.contact textarea {
  font-size: 1rem;
  line-height: 1.5;
}
.contact textarea {
  height: 160px;
  transition: height 0.3s ease;
}

.contact textarea:focus {
  height: 220px; /* o el tamaño que prefieras al expandirse */
}
.contact button {
  background: var(--contrast);
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.contact select {
  padding: 0.8rem;
  border-radius: 5px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}
::placeholder {
  color: #888;
  font-style: italic;
}
.choices__inner {
  background-color: #fff; /* Fondo blanco */
  color: #000; /* Texto negro */
  border-radius: 5px;
  padding: 0.8rem;
  font-family: var(--font-secondary);
}

.choices__list--dropdown .choices__item {
  color: #000; /* Opciones del menú desplegable */
  background-color: #fff;
}
.whatsapp-btn {
  display: inline-block;
  margin-bottom: 1rem;
  background: #25D366;
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-secondary);
}
.whatsapp-btn i {
  margin-right: 0.5rem;
}

/* ===== Footer ===== */
footer {
  background: var(--mid-blue);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ===== Botón flotante (FAB) ===== */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--contrast);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
#scrollTopBtn:hover {
  transform: scale(1.1);
}
#whatsappFloatBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  z-index: 1000;
}

#whatsappFloatBtn:hover {
  transform: scale(1.1);
}


#whatsappFloatBtn.attention {
  animation: bounce 0.6s ease;
}

/* serviciossssssssssssssssssssssssss */
.servicio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.servicio-grid.inverso {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* invierte visualmente el orden sin cambiar el HTML */
}

.servicio-grid.inverso .texto,
.servicio-grid.inverso .imagen {
  direction: ltr; /* restaura la dirección del contenido interno */
}

.servicio-grid .imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  max-height: 600px; /* ajustable según el texto */
}

.servicio-grid .texto {
  color: var(--beige-text);
  font-size: 1rem;
  line-height: 1.6;
}

.servicio-grid .texto h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.servicio-grid .texto ul {
  padding-left: 1.5rem;
  list-style-type: circle; /* Puntitos clásicos */
  color: var(--beige-text);
  font-size: 1rem;
  line-height: 1.6;
}

.servicio-grid .texto li {
  margin-bottom: 0.5rem;
}
.servicio-grid .texto p {
  margin-bottom: 1rem; /* o 1.5rem si querés más aire */
}

.servicio-grid .texto ul {
  margin-top: 1rem;
}
.servicio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 500px; /* ajustable según tu contenido */
  padding: 3rem 2rem;
}

.servicio-grid .imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.servicio-grid .texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#asesoria-legal .texto {
  text-align: right;
  align-items: flex-end;
}
#asesoria-legal .texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
}
#asesoria-legal .texto ul {
  list-style-position: inside;
  direction: rtl;
  text-align: right;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 600px) {
  .logo a {
    padding: 0.6rem 1rem;
    font-size: 1.6rem;
  }
}
