@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root { 
  --primary: #fb9f2ee2;
  --dark: #333;
  --bg: #f0eaea;
  --round: 5px;
  --font: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header y Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary);
  color: white;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.logo {
  height: 65px;
  transition: height 0.3s ease;
  border: 3px solid black;
  border-radius: 8px;
}

header.shrink .logo {
  height: 40px;
}

header.shrink {
  padding: 2px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
nav {
  margin: 5px -70px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-direction: row;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color .3s;
}

nav ul li a:hover {
  color: var(--dark);
}  
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1101;
  font-size: 1.5rem;
}

.menu-toggle .bar {
  display: block;
  height: 3px;
  width: 30px;
  background-color: white;
  border-radius: 2px;
  transition:all 0.3s ease;
  position: relative;
  transform-origin: center;
  margin: 3px 0;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Responsividad */
@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.533);
    padding: 30px 20px;
    transition: right 0.6s ease;
    z-index: 1000;
  }

  nav.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 26px;
    right: 12px;
    z-index: 1101;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }

  body.menu-abierto {
    overflow: hidden; /* Bloquea el scroll del fondo */
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
}
/* Teléfonos pequeños */
@media (max-width: 480px) {
  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.85rem;
  }

  .modal-contenido {
    max-width: 95%;
  }
}
.scrollToHome {
    border-radius: 3px;
    background-color: #263755;
    bottom: 15px;
    color: #ffffff;
    display: none;
    font-size: 18px;
    height: 45px;
    line-height: 40px;
    padding: 3px 10px;
    position: fixed;
    right: 20px;
    text-align: center;
    width: 45px;
    z-index: 99999;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 80vh; /* Pantalla completa */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.banner img {
  width: 100%;
  display: block;
}
.background-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 10px;
}

.banner-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
/*contactanos*/
.__headercontacto {
    background-position: center center;
    background-image: url(https://www.remax.pe/img/banner/banner-contacto.jpg);
    display: block;
    width: 100%;
    height: 500px;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    -moz-transition: transform 0.4s;
    -o-transition: transform 0.4s;
    -webkit-transition: transform 0.4s;
    transition: transform 0.4s;
}
.__headercontacto .container-fluid .row .__lema {
    width: 100%;
    padding: 0% 0%;
}
.container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    position: center;
}
.__headercontacto .container-fluid .row .__lema h1 {
    color: black;
    padding: 0% 4%;
    font-weight: bold;
    text-align: center;
    padding-bottom: 20px;
    font-size: 29px;
    font-weight: bold;
    line-height: 45px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/*gmailwsp*/
.contacto-botones {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-contacto {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1rem;
  color: white;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-contacto i {
  font-size: 1.5rem;
}

.gmail {
  background-color: #fb9f2ee2; /* Rojo Gmail */
}

.gmail:hover {
  background-color: #b5382d;
  transform: translateY(-3px);
}

.whatsapp {
  background-color: #fb9f2ee2;
}

.whatsapp:hover {
  background-color: #1eb857;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 600px) {
  .btn-contacto {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }
}


/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 15px 0;
}
.redes-sociales {
  margin-top: 10px;
}

.redes-sociales a {
  color: white;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s;
  text-decoration: none;
}

.redes-sociales a:hover {
  color: #1d05f8;
  /* anaranjado al pasar el mouse */
}

div {
    display: block;
    unicode-bidi: isolate;
}
/*horario de atencion*/
.b8detalle_content {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative; /* CAMBIA de absolute a relative */
    z-index: 2;
}

.ww_center {
    max-width: 1200px;
    width: 94%;
    margin: auto;
}
div {
    display: block;
    unicode-bidi: isolate;
}
.b8detalle_icon {
    display: flex;
    -webkit-box-orient: vertical;
    flex-direction: column;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 60px;
    height: 60px;
    color: rgb(255, 255, 255);
    font-size: 28px;
    background: #fb9f2ee2;
    border-radius: 50%;
    margin: 0px auto 26px;
}
[class^="icon-"], [class*=" icon-"] {
    font-family: 'icomoon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.b8detalle_title h3 {
    line-height: 1;
    color: #231f20;
    font-family: 'Graphik-Bold', sans-serif;
    font-size: 24px;
    margin-bottom: 0;
}
h3 {
    margin: 0;
    font-size: 12px;
    line-height: 1;
}
.b8detalle_text p {
    margin-bottom: 5px;
}
p {
    margin: 0 0 15px;
}
p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.b8detalle_text {
    line-height: 1.4;
    color: #000;
    font-family: 'Graphik-Regular', sans-serif;
    font-size: 18px;
}
@media screen and (min-width: 1025px) {
    .b8detalle_title {
        overflow: hidden;
    }
}
.b8detalle_title {
    margin-bottom: 20px;
}
@media screen and (min-width: 1025px) {
    .b8detalle.active .b8detalle_title h3 {
        opacity: 1;
        filter: none;
        visibility: visible;
        transform: translateY(0px) scale(1);
    }
}


.icon-horario:before {
    content: "\e911";
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal-contenido h2 {
  margin-top: 0;
  font-size: 24px;
}

.modal-contenido input,
.modal-contenido textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.modal-contenido button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-contenido button:hover {
  background-color: #d9800f;
}
