/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #080808;
    background-color: #f5f5f5;

   
}

nav a svg {
    width: 100px;
    height: 100px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: transform 0.3s ease;
    max-width: 20vw;
    max-height: 20vw;
}

svg:hover{
    transform: translateY(-8px);
}


/* Navbar */
.navbar {
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #3d13e6;
    color: #f9f9f9;
    position: fixed;
    top: 0%;
    z-index: 1000;
}

.navbar .logo {
    margin-top: 43px;
    max-width: 100px;
    font-weight: bold;
    color: #f9f9f9;

    }

.logo img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
}

.whatsapp-button {
    width: 100px !important;
    height: 100px !important;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: transform 0.3s ease;
    border: none
}

.whatsapp-button:hover {
    transform: translateY(10px);
    }


.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f7d934f5;
}


.burger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: rgb(5, 5, 5);
}


/* página de bienvenida-Hero Section */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  overflow: hidden;
  color: rgb(13, 13, 13);
  text-align: center;
  padding: 2rem;
  }

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  animation: zoomIn 10s ease-in-out forwards;
}


:focus {
    outline: 2px dashed #333;
    outline-offset: 4px;
}


.hero-section h1 {
  font-size: 4rem;
  color: #b8a753;
  text-shadow: 2px 2px 8px black;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section p {
  font-size: 2rem;
  color: black;
  text-shadow:
    0 0 5px black,
    0 0 10px black,
    0 0 20px #b8a753,
    0 0 30px #b8a753;
}

.btn-primary {
    background: rgb(15, 15, 15);
    color: white;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #f9f9f9;
    transform: translateY(-3px);
}

/* sección de tarjetas */

.cards-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: #f5f5f5;
}

.cards-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: rgb(0, 0, 0);
}

/* Ajuste para el contenedor de tarjetas, no sé si usas .cards, 
   si no, ignora o adapta */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Ajustamos también las tarjetas dentro del carousel */
.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    color: black;
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 220px;
}

.card:hover {
    transform: scale(1.05);
}

.card-icon {
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.2);
}

.card img {
    width: 20%;
    height: auto;
}

.card h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.card p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

/* Carousel */

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  flex: 0 0 100%;
  padding: 2rem;
  box-sizing: border-box;
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1;
}

.carousel-btn.prev {
  left: 0.5rem;
}

.carousel-btn.next {
  right: 0.5rem;
}

/* Media Queries para hacerlo responsive */

/* Tablets y pantallas medianas */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card img {
    width: 30%;
  }

  .cards-container h2 {
    font-size: 2rem;
  }

  .carousel-container {
    max-width: 100%;
  }

  .carousel-card {
    padding: 1.5rem;
  }

  .carousel-btn {
    font-size: 1.8rem;
  }
}

/* Móviles y pantallas pequeñas */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card img {
    width: 40%;
  }

  .cards-container h2 {
    font-size: 1.5rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.85rem;
    padding: 0 0.5rem 1rem;
  }

  .carousel-card {
    padding: 1rem;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Seccion de contacto */
.contact-section {
    padding: 3rem;
    background:  #f9f9f9;
    color: black;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

#contact-form input, #contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
}

#contact-form button {
    background: black;
    border: none;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.3s;
}

#contact-form button:hover {
    background: #333;
}

/* Animacion de carga. */
#contact-form button.loading {
    background-color: #ccc; 
    cursor: not-allowed; 
    position: relative;
}

#contact-form button.loading::after {
    content: ''; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.flash-messages {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: auto;
}

.alert {
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    color: white;
    font-size: 14px;
    animation: fade-in-out 5s forwards;
}

.alert.success {
    background-color: #4CAF50;
}

.alert.danger {
    background-color: #F44336;
}

/* Animación para desaparecer el mensaje */
@keyframes fade-in-out {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}





/* Sección acerca de nosotros */

.about-section {
  background: linear-gradient(135deg, #f4f4f4, #e2e0d1);
  padding: 3rem;
  color: #222;
  text-align: center;
}




.about-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-section p {
    font-size: 1.3rem;
}

/* pie de página */
footer {
    padding: 1.5rem;
    background: white;
    color: black;
    text-align: center;
    font-size: 1rem;
}


/* Diseño responsivo */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }

    .nav-links.active {
        display: flex;
        background: #f9f9f9;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 1rem;
    }

    .burger {
        display: flex;
    }
}


@keyframes zoomIn {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
/* ==== Carrusel de portada ==== */
.hero-carousel {
  width: 100%;
  height: 90vh;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Responsive: para celular y tablet */
@media (max-width: 768px) {
  .hero-carousel {
    height: 60vh;
  }
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 1rem;
}

.hero-overlay h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 8px #000;
  white-space: nowrap;
}

.hero-overlay p {
  font-size: 1.5rem;
  margin-top: 1rem;
  text-shadow: 1px 1px 5px #000;
}

.hero-overlay .btn-primary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  font-size: 1.2rem;
  background: black;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero-overlay .btn-primary:hover {
  background: #444;
}
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .hero-overlay .btn-primary {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }

  .hero-carousel {
    height: 60vh;
  }
}
@media (max-width: 412px) {
  .navbar {
    padding: 0.3rem 1rem;
    height: auto;
  }

  .logo img {
    height: 100px !important;
    margin: 0 !important;
  }

.logo img {
  height: 100px !important;
  width: auto !important;
  margin-top: 4px;
}

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .about-section p {
    font-size: 1.1rem;
  }

  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .contact-section h2 {
    font-size: 2rem;
  }

  .carousel-card {
    padding: 1rem;
  }

}
.card .service-list {
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
  overflow-wrap: break-word;
}


.service-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
  white-space: nowrap;     /* <== Esta línea evita que se corte la palabra */
}


.service-list ul {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 2rem;
  padding-left: 1rem;
  list-style: disc inside;

  /* EVITAR CORTES DE PALABRAS */
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}


.card .service-list {
  padding: 1rem;
  width: 100%;
  overflow-wrap: break-word;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pagina {
  background: url(compraventa\ inmueble.jpg);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.pagina::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.pagina ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.pagina ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.pagina h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 1.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
}

.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

.promo-cuotas-comercial {
  background: linear-gradient(135deg, #818080, #f1f0f0); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center; 

}

.promo-cuotas-derechosposesorios {
  background: linear-gradient(135deg, #cfdfc5, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

.promo-cuotas-automotores {
  background: linear-gradient(135deg, #818080, #f1f0f0); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

.promo-cuotas-certificaciones {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}
 

.automotores{
background: url(auto.jpg);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.automotores::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.automotores ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.automotores ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.automotores h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
}

.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}

.derechos-posesorios {
  background: url(derechos\ posesorios.jpg);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.derechosposesorios::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.derechosposesorios ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.derechosposesorios ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.derechosposesorios h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
}


.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}

.certificacionesyactas {
  background: url(certificaciones.jpg);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.certificacionesyactas::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.certificacionesyactas ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.certificacionesyactas ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.certificacionesyactas h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
}

.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}

.civilyfamilia {
  background: url(familia.jpg);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.civilyfamilia::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.civilyfamilia ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.civilyfamilia ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.civilyfamilia h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
}

.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}


.comercial {
  background: url(comercial.jpg);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.comercial::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.comercial ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.comercial ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.comercial h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
}

.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}

/* === RESPONSIVE HERO CAROUSEL === */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 100vh;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
/* Enlaces del menú móvil con efecto táctil */
@media (max-width: 768px) {
  .nav-links li a {
    color: rgb(4, 4, 4);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    padding: 0.5rem 0.8rem;
    display: inline-block;
    border-radius: 8px;
  }

  .nav-links li a:active {
    background-color: #b8a753;
    color: white;
  }
}

@media (max-width: 600px) 
{
  .navbar {
    padding: 0.3rem 1rem !important; /* menos padding para que quede más compacta */
    height: 50px; /* fija una altura menor */
  }

  .nav-links li a {
    font-size: 1rem !important; /* texto más pequeño */
  }

  .burger {
    gap: 5px !important;
  }

  .burger span {
    width: 20px !important;
    height: 2px !important;
  }
}
.descripcion-servicios {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #000;
  max-width: 800px;
  margin: 1.5rem auto;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subtitulo-servicios {
  background-color: rgba(255, 255, 255, 0.75);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #000;
  margin: 2rem auto 1rem auto;
  width: fit-content;
}
.civilyfamilia p {
  background-color: rgba(255, 255, 255, 0.75);
  width: fit-content;
  padding: 0.6em 1em;
  border-radius: 5px;
  color: #000;
  margin: 1rem auto; /* Centrado horizontal y margen arriba/abajo */
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: left;
}
.comercial p {
  background-color: rgba(255, 255, 255, 0.75);
  width: fit-content;
  padding: 0.6em 1em;
  border-radius: 5px;
  color: #000;
  margin: 1rem auto; /* Centrado horizontal y margen arriba/abajo */
  font-size: 1.3rem;
  line-height: 1.6;
  text-align: left;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  background-color: white;
}

#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: desaparecer 4s ease forwards;
  z-index: 9999;
}

#logo {
  width: 150px;
  animation: latido 2s infinite;
}

@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes desaparecer {
  0% { opacity: 1; visibility: visible; }
  80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

#contenido {
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 2s ease forwards;
  animation-delay: 4s;
  padding: 2rem;
  text-align: center;
  font-family: sans-serif;
  transition: all 0.5s ease;
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.Montevideo{
background: url(escribana-firmando-documentos-en-montevideo.webp);
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: rgb(0, 0, 0);
  padding: 3rem;
}

.Montevideo::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.Montevideo ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Esto alinea a la izquierda */
}


.Montevideo ul li {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 1.5rem;
  color: #000;
  margin: 0.5rem 0;
  text-align: left;
}


.Montevideo h2 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */

}
.Montevideo h1 {
  display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */

}
.Montevideo p {
   display: block; /* Que cada ítem ocupe toda la línea */
  background-color: rgba(255, 255, 255, 0.75); /* Fondo blanco translúcido */
  width: fit-content; /* Que el fondo se ajuste al contenido */
  padding: 0.4em 0.8em;
  border-radius: 5px;
  color: #000;
  margin: 0.5rem 0;
  margin-left: auto;   /* Centrado horizontal */
  margin-right: auto;  /* Centrado horizontal */
  }



.promo-cuotas {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4); /* degradado rosado suave */
  color: #333;
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
  text-align: center;
}

/* Animación sutil para llamar la atención */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px rgba(0,0,0,0.2); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.footer {
background-color: #f9f9f9;
}
.oficina-card {
  background-color: #f1f1f1;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
  max-width: 400px;
}

.oficina-card a {
  text-decoration: none;
  color: #1a1a1a;
  display: block;
}

.oficina-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  background-color: #eaf0ff;
}

.oficina-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: #3d13e6;
}

.oficina-card p {
  margin: 0;
  font-size: 1rem;
}

