
/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: #36454F;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px; /* IMPORTANTE para cálculo del hero */
}

header .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* MENU DESKTOP */
nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #D4A017;
}
.logo-text{
  color:white;
}
/* BOTON HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MENU LATERAL */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #0077B6;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.4s ease;
  z-index: 2000;
}

.sidebar a {
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
}

.sidebar.active {
  left: 0;
}

/* ANIMACION HAMBURGUESA -> X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO / BANNER ===== */
.banner{
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;

  width:100%;
  min-height:calc(80vh - 60px);
  max-width:100%;
  padding:40px 20px;

  display:flex;

  justify-content:center;

  align-items:center;

  text-align:center;

  color:white;

}
/* =========================
   BANNER BUSCADOR
========================= */

.banner-2 {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

/* FORMULARIO BUSCADOR */

#buscador-propiedades {
    width: 100%;
    max-width: 1200px;

    background: #f7f7f7;
    padding: 20px;

    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    justify-content: center;
}


/* TITULO */

.buscar-propertys {
    flex: 0 0 100%;
    width: 100%;
    text-align: center;
}


/* CAMPOS */

#buscador-propiedades input,
#buscador-propiedades select {
    flex: 1 1 calc(25% - 20px);
    min-width: 220px;

    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}


/* BOTON */

#buscador-propiedades button {
    flex: 0 0 100% !important;
    width: 100%;

    padding: 12px;
}


/* TABLET Y MOVIL */

@media (max-width: 992px) {

    #buscador-propiedades input,
    #buscador-propiedades select {
        flex: 0 0 calc(50% - 10px);
        width: calc(50% - 10px);
        min-width: 0;
    }

}


/* TITULO Y BOTON SIEMPRE COMPLETOS */

.buscar-propertys {
    flex: 0 0 100%;
    width: 100%;
}
#buscador-propiedades button {
    flex: 0 0 77% !important ;
    width: 100% ;
}
/* ===== SECCIONES ===== */
section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

/* ===== PROPIEDADES ===== */
.propiedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== EQUIPO ===== */
.equipo {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.miembro {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 10px;
  flex: 1 1 200px;
  text-align: center;
}

/* ===== FORMULARIOS ===== */
form input, form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  background-color: #0077B6;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

form button:hover {
  background-color: #005f8c;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #2B2B2B;
  color: white;
}

/* FOOTER GRID */
.footer-hogar-valencia {
  width: 100%;
  background: #2B2B2B;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.hogar-valencia-footer {
  width: 20%;
  border-bottom: solid 1px #7c5834;
  height: 200px;
}

.redes-sociales {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.redes-sociales h3 {
  width: 100%;
}

.redes-sociales img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
}

/* ===== LOGO CASA ===== */
.h-casa {
  position: relative;
  display: inline-block;
  color: #fff;
  margin-right: 2px;
  padding-top: 8px;
}

.h-casa::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 20px solid #D4A017;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .banner h1 {
    font-size: 2.5rem;
  }

  .hogar-valencia-footer {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .banner {
    height: 70vh; /* mejor en móvil */
  }

  .banner h1 {
    font-size: 2rem;
  }

  .banner form select,
  .banner form input {
    width: 150px;
  }

  .propiedades-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .banner h1, .banner-2 h1 {
    font-size: 3rem !important;
  }

  .banner form select,
  .banner form input {
    width: 100%;
  }

  .propiedades-grid {
    grid-template-columns: 1fr;
  }

  .equipo {
    flex-direction: column;
  }

  .hogar-valencia-footer {
    width: 100%;
  }
}

/* tabla*/
 form {
      background: white;
      padding: 15px;
      margin-bottom: 20px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    input, select {
      padding: 8px;
    }

    button {
      padding: 8px 12px;
      cursor: pointer;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: white;
    }

    th, td {
      padding: 10px;
      border: 1px solid #ddd;
    }

    th {
      background: #333;
      color: white;
    }

    .delete {
      background: red;
      color: white;
      border: none;
    }
    /*css tabla inmueble*/
     form {
      background: white;
      padding: 15px;
      margin-bottom: 20px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    input, select {
      padding: 8px;
    }

    button {
      padding: 8px 12px;
      cursor: pointer;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      background: white;
    }

    th, td {
      padding: 10px;
      border: 1px solid #ddd;
    }

    th {
      background: #333;
      color: white;
    }

    .delete {
      background: red;
      color: white;
      border: none;
    }
    /*botones*/
    /* Contenedor de cada tarjeta */
.card {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Botones */
.card button {
    margin-right: 5px;
    padding: 11px 17px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
}

/* Botón Editar */
.card button:nth-child(4) {
    background-color: #007bff; /* azul */
}

/* Botón Eliminar */
.card button:nth-child(5) {
    background-color: #dc3545; /* rojo */
}
/*login*/
.btn-login{
  display:inline-block;
  padding:6px 15px;
  background:#D4A017;
  color:#fff;
  text-decoration:none;
  border-radius:6px;
  font-weight:bold;
  transition:0.3s;
}

.btn-login:hover{
  background:#2563eb;
}
/*css interior nav*/
@media (max-width: 768px) {

  

}
@media (max-width: 768px) {

  .logo {
    font-size: 0;
  }

  .logo .h-casa {
    font-size: 28px;
  }


}
.crm-mobile {
  margin-left: 5px;
}

@media (max-width: 768px) {

  .logo-text {
    display: none;
  }

}
/*css targetas*/
/* =========================
   TARJETAS EQUIPO
========================= */

.team-card {

  width: 274px;

  background: white;

  border-radius: 16px;

  padding: 20px;

  text-align: center;

  box-shadow:
    0 4px 10px rgba(0,0,0,0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

}

/* HOVER */
.team-card:hover {

  transform: translateY(-8px);

  box-shadow:
    0 10px 25px rgba(30,58,95,0.25);

}

/* IMAGEN */
.team-img {

  width: 100%;

  height: 220px;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #1E3A5F,
      #3E5F8A
    );

  margin-bottom: 18px;

}

/* NOMBRE */
.team-card h3 {

  font-size: 22px;

  color: #1E3A5F;

  margin-bottom: 10px;

}

/* CARGO */
.team-card .cargo {

  font-size: 16px;

  font-weight: 600;

  color: #ff7a00;

  margin-bottom: 12px;

}

/* DESCRIPCIÓN */
.team-card .descripcion {

  font-size: 15px;

  line-height: 1.6;

  color: #555;

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .team-card {

    width: 100%;

    max-width: 350px;

  }
}
/*cuarpo index.html*/
/* =========================
   Piso propiedades
========================= */
.pisos-propiedades{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  height: auto;
  background:#f7f7f7;
}
.hero-imagen{
  width: 71%;
  height: auto;
  margin: 10px;
  border-radius: 240px 0px 240px;
  overflow: hidden;
}
.hero-imagen img{
  width: 100%;
   border-radius: 240px 0px 240px;
   transition: transform 0.3s ease, opacity 0.3s ease;
}
.hero-imagen img:hover{
   transform: scale(1.1);
  opacity: 0.8;
}

  .pisos-right{
  width: 22%;
  margin: 10px;
  background: white;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  padding:2rem;
}
.pisos-right a{
  display:inline-block;
  margin-top:1rem;
  padding:14px 28px;
  background:#fff;
  color:#000;
  text-decoration:none;
  font-weight:600;
  border-radius:25px;
  transition:all .3s ease;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.pisos-right a:hover{
  background:#000;
  color:#fff;
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 15px 35px rgba(0,0,0,.4);
}
/*Responsive pisospropiedades*/
@media (max-width: 992px) {
  .pisos-propiedades{
  display: flex;
  flex-wrap: wrap;
  justify-content: baseline;
  align-items: center;
}
.hero-imagen{
  width: 64%;
  height: auto;
  margin: 10px;
 border-radius: 100px 0px 100px;
  overflow: hidden;
}

 .hero-imagen img{
  width: 100%;
  height: auto;
  border-radius: 100px 0px 100px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
  .pisos-right {
    width: 33%;
    margin: 10px 0;
    padding: 1rem;
    align-items: center;
    text-align: center;
  }

  .pisos-right a {
    width: 80%;
    margin-top: 1rem;
    padding: 12px 24px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .hero-imagen {
    width: 100%;
    height: auto;
    border-radius: 50px 0px 50px;
    margin: 20px 0;
  }
  .hero-imagen img{
    width: 100%;
    height: auto;
    border-radius: 50px 0px 50px;
    margin: 10px 0;
  }
  .pisos-right {
    width: 100%;
    margin: 20px 0;
    padding: 1rem;
    align-items: center;
    text-align: center;
  }

  .pisos-right a {
    width: 80%;
    margin-top: 1rem;
    padding: 12px 24px;
    font-size: 14px;
  }}
 /*======================
   DESTACADOS
========================= */

.destacado-img {

  width: 100%;

  height: 220px;

  border-radius: 14px;

  margin-bottom: 20px;

}

.venta-img {
  background: #355C7D;
}

.alquiler-img {
  background: #1E3A5F;
}

.asesoria-img {
  background: #4F709C;
}

/* =========================
   NOSOTROS
========================= */

.nosotros-img {

  width: 100%;

  max-width: 500px;

  height: 450px;

  background: #2D4F75;

  border-radius: 20px;

}

/* =========================
   BANNER FULL
========================= */

.banner-full {

  width: 100%;

  height: 500px;

  background: #16324F;

  margin: 80px 0;

  border-radius: 0;

}

/* =========================
   PROPIEDADES
========================= */

.propiedad-img {

  width: 100%;

  height: 240px;

  border-radius: 14px;

  margin-bottom: 18px;

}

.piso-moderno {
  background: #44698B;
}

.atico-terraza {
  background: #2B4B6B;
}

.alquiler-estudiante {
  background: #5A7CA0;
}

/* =========================
   CONTACTO
========================= */

.contacto-img {

  width: 100%;

  max-width: 500px;

  height: 400px;

  background: #1E3A5F;

  border-radius: 20px;

}

/* =========================
   NOSOTROS EXTRA
========================= */

.nosotros-extra-img {

  width: 100%;

  height: 350px;

  background: #27496D;

  border-radius: 20px;

  margin-bottom: 30px;

}

/* =========================
   SERVICIOS
========================= */

.servicios-banner {

  width: 100%;

  height: 300px;

  background: #1E3A5F;

  border-radius: 20px;

  margin-bottom: 30px;

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .hero-imagen,
  .banner-full,
  .nosotros-img,
  .contacto-img,
  .nosotros-extra-img,
  .servicios-banner {

    height: 250px;

  }

}
/*boton generar pdf*/
.btn-pdf{
  background:#1E3A5F;
  color:white;
  border:none;
  padding:6px 10px;
  border-radius:5px;
  cursor:pointer;
}

.btn-pdf:hover{
  background:#F4A300;
}
/*colores de tabla*/
/* =========================
   BOTONES ACCIONES CRM
========================= */

#tablaContratos td button {

    border: none;

    padding: 8px 12px;

    border-radius: 6px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;

    margin: 2px;

}

/* EDITAR */
#tablaContratos td button:nth-child(1) {

    background: #36454F;

    color: white;

}

#tablaContratos td button:nth-child(1):hover {

    background: #1E2A32;

    transform: translateY(-2px);

}

/* ELIMINAR */
#tablaContratos td button:nth-child(2) {

    background: #b42323;

    color: white;

}

#tablaContratos td button:nth-child(2):hover {

    background: #8e1b1b;

    transform: translateY(-2px);

}

/* PDF */
.btn-pdf {

    background: #F4A300;

    color: #36454F;

}

.btn-pdf:hover {

    background: #d88f00;

    transform: translateY(-2px);

}

/* TABLA */
#tablaContratos {

    border-collapse: collapse;

    width: 100%;

    background: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
      0 4px 15px rgba(0,0,0,0.08);

}

/* HEAD */
#tablaContratos thead {

    background: #36454F;

    color: white;

}

/* CELDAS */
#tablaContratos th,
#tablaContratos td {

    padding: 14px;

    text-align: center;

    border-bottom:
      1px solid #eee;

}

/* HOVER FILAS */
#tablaContratos tbody tr:hover {

    background: #f8f8f8;

}
/*css tabla contratos*/
/* =========================
   TABLA RESPONSIVE
========================= */

.tabla-responsive {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}

/* MOBILE */
@media (max-width: 768px) {

    #tablaContratos {

        min-width: 700px;

    }

    #tablaContratos th,
    #tablaContratos td {

        padding: 10px;

        font-size: 13px;

    }

    #tablaContratos td button {

        padding: 6px 8px;

        font-size: 12px;

    }

}
/*css botones de archivos protegidos*/
/* =========================
   ACCIONES TABLAS CRM
========================= */

table td:last-child,
table th:last-child {

    text-align: center;

    min-width: 180px;

}

table td:last-child {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

}

/* MOBILE */
@media (max-width: 768px) {

    table td:last-child button {

        font-size: 11px;

        padding: 5px 7px;

    }

}
/*boton editar*/
.editar{
  background: #36454F;

    color: white;
}
.eliminar{
   background: #c0392b;

    color: white;

}
.editar:hover {

    background: #1f2a30;

}
.eliminar:hover {

    background: #962d22;

}
/*css alert*/
#pdfToast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 14px 22px;
  color: white;
  border-radius: 10px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

#pdfToast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/*icono imagenes nosotros*/
.fa-solid {
  margin-top: 1rem;
color: white;
font-size: 11rem;
}
.banner-2{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 3px;
    overflow: visible;
}

.propiedades{
    clear: both;
    margin-top: 0;
}
/*cambios el  23 j */
address a{
  color: white;
}

.hogar-valencia-footer {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hogar-valencia-footer:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(216, 143, 0, 0.18);
}
.hogares-valencia-whatsapp{
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 9999;
}

.hogares-valencia-whatsapp img{
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: float 2.5s ease-in-out infinite;
}

.hogares-valencia-whatsapp img:hover{
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

@keyframes float{
    0%,100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-5px);
    }
}
@keyframes pulse{
    0%{
        box-shadow: 0 0 0 0 rgba(212,160,23,.6);
    }
    70%{
        box-shadow: 0 0 0 15px rgba(212,160,23,0);
    }
    100%{
        box-shadow: 0 0 0 0 rgba(212,160,23,0);
    }
}

.hogares-valencia-whatsapp img{
    animation:
        float 2.5s ease-in-out infinite,
        pulse 2.8s infinite;
}
/*bottom subir arriba*/
.ir-arriba{
    padding:13px;
    background:#cba80c;
    color:#04062C;
    font-size:25px;
    cursor:pointer;

    position:fixed;
    bottom:15px;
    right:15px;

    border:2px solid #cba80c;
    border-radius:6px;

    box-shadow:0 5px 15px rgba(0,0,0,.25);
    z-index:9999;

    /* Estado oculto */
    opacity:0;
    visibility:hidden;
    transform:translateY(30px) scale(.9);

    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.22,1,.36,1),
        visibility .6s;
}

/* Estado visible */
.ir-arriba.visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}

/* Hover */
.ir-arriba:hover{
    transform:translateY(-6px) scale(1.08);
    background:#e0bc1a;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}