/* ===== 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 ===== */
  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;
  flex-wrap: wrap;
  padding: 0.5rem;
  gap: 0.5rem;
  overflow: visible;
}
.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/fondo7.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;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 🔍 opacidad ajustable */
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
}

/* ===== 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;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
  font-size: 2rem;
  color: var(--beige-text); /* o el color que uses para títulos */
  border-radius: 2px;

}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--beige-text);
  transition: width 0.6s ease;
  border-radius: 2px;
  
}


/* Activar animación al cargar o al hacer scroll */
.section-title.animate::after {
  width: 100%;
  left: -10%;
  bottom: 10%;
  width: 120%;
  height: 1px;
  border-radius: 2px;
  transition: width 1.5s ease;
}


.servicio-subrayado {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  padding-bottom: 0.4rem;
  color: var(--beige-text);
  text-align: left; /* 🔥 Asegura que el subrayado se alinee bien */
}

.servicio-subrayado::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--beige-text);
  transition: width 1.5s ease;
  border-radius: 2px;
}

.servicio-subrayado.animate::after {
  width: 100%;
  left: -1.5rem;
  bottom: 10%;
  width: 100%;
  height: 1px;
  border-radius: 2px;
  transition: width 1.5s ease;
}

.servicio-grid .texto {
  overflow: visible;
}


/* ===== Contact ===== */
.contact ul {
  list-style-type: disc; /* Puntitos clásicos */
  list-style-position: inside; /* Puntito alineado con el texto */
  padding-left: 1.5rem; 
  margin-top: 1rem; 
  margin-bottom: 1rem;
  color: var(--beige-text);
  font-size: 1rem;
  line-height: 1.6;
}

.contact li {
  margin-bottom: 0.5rem; 
}
.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;
  min-height: 100vh;

}

a:visited {
  color: inherit;
}

.contact-row {
  display: flex;
  align-items: center; 
  justify-content: center; 
  gap: 1rem;
  flex-wrap: wrap; 
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.contact-row span,
.contact-row a,
.contact-row button {
  font-size: 1rem;
  color: var(--beige-text);
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--beige-text);
  font-size: 1.1rem;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Fondo con imagen oscurecida */
.contact::before {
  content: "";
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height:120%;
  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: 1;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 400px;
  margin: 2rem auto;
  margin-bottom: 5rem;
}
.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: #071739;
  padding: 0.8rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-secondary);
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
  color: var(--beige-text);
}
.whatsapp-btn i {
  margin-right: 0.5rem;
}

/* =====                                         Footer                                                 ===== */
footer {
  background: var(--mid-blue);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

/* ===== 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;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scrollTopBtn:hover {
  transform: scale(1.2);
}
#scrollTopBtn img {
  display: block;
  margin: auto;
}

#scrollTopBtn .arrow-up {
  font-size: 2.5rem; /* 🔧 Ajustá según el tamaño del botón */
  line-height: -5rem;
  display: block;
  text-align: center;
  color: #071739;
  position: relative;
  top: -6px; /* 🔧 ajustá este valor para subir la flecha */
}

#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 1s 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(-25px);
  }
}
@media (max-width: 600px) {
  .logo a {
    padding: 0.6rem 1rem;
    font-size: 1.6rem;
    
  }

  .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .nav-links a,
  .nav-links .nav-contact {
    display: block;
    height: 40px;
    line-height: 40px;
    font-size: 0.95rem;
    text-align: center;
    padding: 0 0.8rem;
    transition: all 0.3s ease;
  }

  .nav-links .nav-contact {
    background: var(--contrast);
    color: #fff;
    border-radius: 5px;
  }
    .hero h1,
      .hero p {
        max-width: 90vw;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-wrap: balance;
        font-size: clamp(1rem, 4vw, 1.6rem); /* 🔧 escala solo en mobile */
        text-align: center;
        margin: 0 auto;
      }

    .sobre-nosotros p {
    max-width: 90vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-wrap: balance;
    font-size: clamp(1rem, 4vw, 1.6rem);
    text-align: center;
    margin: 0 auto;
  }
   .servicios-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  .servicio-btn {
    flex: 1 1 100%; /* 🔧 se adapta al ancho disponible */
    max-width: 90vw;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    padding: 0.8rem 1rem;
    text-align: center;
  }


}