/*     
    I&F Group LLC - Estilos HTML Estáticos
    Basado en el tema WordPress original
*/

/* ========= FUENTES ========= */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUFjIg1_i6t8kCHKm459Wx7xQYXK0vOoz6jq6R9aX8.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Uw-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr6Ew-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCs16Ew-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr70w-.ttf) format('truetype');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvC70w-.ttf) format('truetype');
}

/* ========= ESTILOS GENERALES ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  font-family: 'Montserrat', sans-serif;
  transition: all 0.25s ease-in-out;
  -webkit-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  -ms-transition: all 0.25s ease-in-out;
  font-size: 1.05em;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

p {
  color: #555555;
}

.Tcenter {
  text-align: center;
}

.btnif {
  color: #ffffff;
  background: #0025e4;
  border-radius: 0.8em;
}

.section {
  margin: 0;
  padding: 0;
}

/* ========= MENÚ PRINCIPAL ========= */
.MenuAll {
  margin: 0;
  position: fixed;
  width: 100%;
  z-index: 10;
  top: 0;
  left: 0;
  padding: 0;
}

.MenuAll nav {
  background-color: #ffffff;
  box-shadow: 11px 12px 0px #ce020a;
  padding: 0 2em;
  color: #00339c;
  height: 80px;
  line-height: 80px;
  max-width: 1400px;
  margin: 1em auto 0;
}

@media screen and (max-width: 1200px) {
  .MenuAll nav {
    padding: 0 1.5em;
  }
}

@media screen and (max-width: 991px) {
  .MenuAll nav {
    box-shadow: 8px 8px 0px #ce020a;
    margin: 0.5em 1em 0;
    padding: 0 1em;
  }
}

.MenuAll nav a {
  text-transform: uppercase;
}

.MenuAll .Logotipo {
  text-align: center;
  height: 78px;
  margin-left: 1.9em;
  position: relative;
  z-index: 11;
}

.MenuAll .Logotipo img {
  height: 78px;
}

.MenuAll #nav-mobile {
  background: transparent;
  text-align: center;
}

.MenuAll #nav-mobile {
  font-size: 11px;
}

.MenuAll #nav-mobile a {
  color: #00339c;
  font-weight: 600;
  padding: 0 4px !important;
  white-space: nowrap;
}

@media screen and (min-width: 1400px) {
  .MenuAll #nav-mobile {
    font-size: 14px;
  }

  .MenuAll #nav-mobile a {
    padding: 0 10px !important;
  }
}

.MenuAll #nav-mobile span {
  background: transparent;
  padding: 0.7em 1em;
  border-radius: 2em;
  color: #00339c;
  font-weight: 600;
}

/* Botón CONTACTO en azul */
.MenuAll #nav-mobile a[href="#FormularioContacto"] span {
  background: #0025e4;
  color: #ffffff;
  font-weight: 700;
}

.MenuAll #nav-mobile a[href="#FormularioContacto"]:hover span {
  background: #001f99;
}

.sidenav-trigger {
  position: relative;
  z-index: 7;
  float: right !important;
  color: #555555;
  margin-right: 1.3em;
  margin-top: -2.5em;
}

.sidenav-trigger i {
  margin-top: 0.3em;
  margin-right: 0.3em;
  font-size: 3.19em !important;
}

.sidenav {
  background: #00339c;
}

.sidenav .user-view {
  height: 160px;
}

.sidenav .user-view .background img {
  width: 100%;
}

.sidenav li a {
  text-transform: uppercase;
  font-size: 1.23em;
  color: #ffffff;
}

/* Botón CONTACTO en rojo en menú móvil */
.sidenav li a[href="#FormularioContacto"] {
  background: #c4020a !important;
  font-weight: 700;
}

/* ========= SLIDER PRINCIPAL ========= */
.slider-principal {
  background: url('../imagenes/hero.webp') no-repeat center center;
  background-size: cover;
  min-height: 600px;
  display: block !important;
  margin: 0 !important;
  padding: 100px 0 50px 0 !important;
  position: relative;
  width: 100vw !important;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
}

/* Anular estilos de Materialize row/container dentro del slider */
.slider-principal .row,
.slider-principal .container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.slider-principal .slider-content {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.slider-principal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15); /* Opacidad reducida de 0.4 a 0.15 */
  z-index: 1;
}


.slider-content {
  text-align: center !important;
  color: white;
  padding: 3em 2em;
  max-width: 900px;
  margin: 0 auto !important;
  position: relative;
  z-index: 3;
  width: 100%;
}

.slider-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
  line-height: 1.2;
}

.slider-content p {
  font-size: 2rem;
  color: white;
  margin-bottom: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-content .btn {
  padding: 0 3rem;
  height: 60px;
  line-height: 60px;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-azul {
  background: #0025e4 !important;
  color: white !important;
  border-radius: 8px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 37, 228, 0.4);
  transition: all 0.3s ease;
}

.btn-azul:hover {
  background: #001a99 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 37, 228, 0.6);
}

@media screen and (max-width: 768px) {
  .slider-principal {
    min-height: 500px;
    background-size: cover; /* En móvil volver a cover para mejor vista */
  }

  .slider-content h1 {
    font-size: 2.5rem;
  }

  .slider-content p {
    font-size: 1.4rem;
  }

}

@media screen and (max-width: 480px) {
  .slider-principal {
    min-height: 450px;
    padding-top: 120px;
  }

  .slider-content h1 {
    font-size: 1.8rem;
  }

  .slider-content p {
    font-size: 1.1rem;
  }
}

/* ========= SECCIÓN: ¿QUIÉRES CONSTRUIR? ========= */
.QuieresConstru {
  margin-top: -0.5em;
  padding: 4em 0 5.5em 0;
  text-align: center;
  background: #ffffff;
  font-family: 'Montserrat', sans-serif;
}

.QuieresConstru h2 {
  color: #222;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.QuieresConstru p {
  color: #222;
  font-size: 1.3em;
}

/* ========= SECCIÓN: ACERCA DE ========= */
.Acercade {
  margin-top: -0.5em;
  padding: 5em 0 5em 0;
  text-align: center;
  background: #e9f0fb;
  font-family: 'Montserrat', sans-serif;
}

.Acercade h2 {
  color: #00339c;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.Acercade p {
  color: #818181;
  font-size: 1.1em;
}

.Acercade .Acerca {
  text-align: left;
  color: #818181;
}

.Img img {
  width: 100%;
  padding: 0.5em;
}

@media screen and (min-width: 991px) {
  .Img img {
    padding: 2em;
  }
}

/* ========= SECCIÓN: NUESTROS SERVICIOS ========= */
.NuestroServicios {
  padding: 4.5em 0 3em 0;
  line-height: 1em;
}

.NuestroServicios h5 {
  line-height: 1.3em;
  color: #0025e4;
  text-transform: uppercase;
  font-weight: 600;
}

.NuestroServicios h2 {
  line-height: 1em;
  margin-top: 0em;
  font-weight: 500;
}

.NuestroServicios i {
  color: #0025e4;
  font-size: 1.6em;
}

.NuestroServicios ul li {
  font-size: 1.2em;
  margin: 1.99em 0;
}

.NuestroServicios p {
  font-size: 1.3em;
  line-height: 1.4em;
}

/* ========= SECCIÓN: CONSTRUCCIÓN ========= */
.Construccion {
  width: 100%;
  margin: 5em 0 5em 0;
  text-align: center;
}

.Construccion .BgCons {
  background: #e9f0fb url('../imagenes/construccion.webp') no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 320px;
  color: #ffffff;
}

.Construccion .BgCons .Title h2 {
  margin-top: 2em;
}

/* ========= ÚLTIMA CASA CONSTRUIDA - DISEÑO GRID MODERNO ========= */

.UltimaCasa {
    padding: 4em 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.UltimaCasa .container {
    max-width: 1600px !important;
    width: 95% !important;
}

.UltimaCasa h2 {
    margin-top: 0;
    margin-bottom: 3rem;
    font-weight: 700;
    color: #00339c;
    font-size: 2.5rem;
}

.UltimaCasa h5 {
    color: #0066ff;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ========= LAYOUT PRINCIPAL ========= */
.casa-destacada-main {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

/* ========= GRID DE IMÁGENES ========= */
.images-grid-container {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1rem;
    height: 400px;
}

.main-image-grid {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    grid-row: 1;
}

.main-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.main-grid-image:hover {
    transform: scale(1.05);
}

/* ========= VIDEO GRID ITEM ========= */
.video-grid-item {
    position: relative;
    cursor: pointer;
    height: 100%;
}

.video-poster {
    position: relative;
    height: 100%;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 156, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    z-index: 2;
}

.video-play-overlay:hover {
    background: rgba(0, 51, 156, 0.9);
    transform: scale(1.02);
}

.play-button {
    color: white;
    font-size: 3rem !important;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.play-text {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ========= INFORMACIÓN DE LA PROPIEDAD ========= */
.property-details {
    padding-left: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #00339c;
    margin: 0 1rem 0 0;
    line-height: 1;
}

.property-status {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    padding: 0.4em 1em;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.property-id {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.property-address {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: #343a40;
}

.property-address i {
    color: #00339c;
    margin-right: 0.8rem;
    font-size: 1.4rem;
}

.property-specs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.spec-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 51, 156, 0.15);
}

.spec-card i {
    color: #00339c;
    font-size: 1.8rem;
}

.spec-details {
    display: flex;
    flex-direction: column;
}

.spec-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00339c;
    line-height: 1;
}

.spec-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.property-description {
    margin-bottom: 2rem;
}

.property-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

/* ========= BOTÓN DE CONTACTO ========= */
.contact-action {
    margin-top: auto;
}

.contact-button {
    background: linear-gradient(45deg, #007bff, #0056b3) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 2.5rem !important;
    height: 55px !important;
    line-height: 55px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    color: white !important;
}

.contact-button:hover {
    background: linear-gradient(45deg, #0056b3, #004085) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    color: white !important;
}

.guarantee-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 1rem 0 0 0;
    font-style: italic;
}

/* ========= GRID SIMPLIFICADO HORIZONTAL ========= */
.secondary-images-grid-simple {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

.video-item {
    position: relative;
    flex: 1;
    min-height: 150px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 37, 228, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.video-icon-placeholder {
    font-size: 4rem !important;
    color: rgba(0, 37, 228, 0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.secondary-grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.galeria-item-link {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Botón Grande de Galería */
.galeria-button-large {
    background: linear-gradient(135deg, #0025e4 0%, #4285f4 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 37, 228, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
}

.galeria-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.galeria-button-large:hover::before {
    left: 100%;
}

.galeria-button-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 37, 228, 0.4);
}

.galeria-button-content {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.galeria-icon-large {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.galeria-icon-large i {
    font-size: 3rem;
    opacity: 0.9;
}

.galeria-text-large {
    text-align: left;
}

.galeria-text-large h6 {
    margin: 0 0 0.3rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.galeria-count {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Modal de Galería */
.modal-galeria {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-galeria.show {
    opacity: 1;
    visibility: visible;
}

.modal-galeria-content {
    background: white;
    border-radius: 16px;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-galeria.show .modal-galeria-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h5 {
    margin: 0;
    color: #0025e4;
    font-weight: 700;
    font-size: 1.4rem;
}

.modal-close {
    font-size: 2.2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    color: #ffffff;
    background: #0025e4;
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.imagen-principal-modal {
    text-align: center;
    background: linear-gradient(45deg, #000000 25%, #1a1a1a 25%, #1a1a1a 50%, #000000 50%, #000000 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen-principal-modal img {
    max-width: 85vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.controles-galeria {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.btn-anterior,
.btn-siguiente {
    background: #0025e4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-anterior:hover,
.btn-siguiente:hover {
    background: #001a99;
    transform: scale(1.1);
}

.contador-galeria {
    font-weight: 600;
    color: #333;
}

.thumbnails-galeria {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    overflow-x: auto;
    max-height: 120px;
}

.thumbnail-item {
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail-item.active {
    border-color: #0025e4;
    transform: scale(1.1);
}

.thumbnail-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.thumbnail-item:hover {
    border-color: #0025e4;
    opacity: 0.8;
}

/* ========= RESPONSIVE ========= */
@media screen and (max-width: 992px) {
    .casa-destacada-main {
        flex-direction: column;
        padding: 1.5rem;
    }

    .property-details {
        padding-left: 0;
        padding-top: 2rem;
    }

    .images-grid-container {
        height: 350px;
    }

    .property-price {
        font-size: 2.4rem;
    }

    .property-specs {
        justify-content: space-between;
    }
}

@media screen and (max-width: 600px) {
    .UltimaCasa {
        padding: 2em 0;
    }

    .casa-destacada-main {
        padding: 1rem;
        margin: 1rem;
        border-radius: 16px;
    }

    .images-grid-container {
        height: 300px;
    }

    .property-price {
        font-size: 2rem;
    }

    .property-specs {
        gap: 1rem;
    }

    .spec-card {
        min-width: 100px;
        padding: 0.8rem;
    }

    .contact-button {
        width: 100% !important;
        padding: 0 1rem !important;
    }
}

/* ========= SECCIÓN: PROYECTOS ========= */
.Proyectos {
  text-align: center;
  padding: 1em 0 2em 0;
}

.Proyectos h5 {
  line-height: 1em;
  color: #0025e4;
  text-transform: uppercase;
  font-weight: 600;
}

.Proyectos h2 {
  line-height: 1em;
  margin-top: 0em;
  font-weight: 500;
}

.Proyectos h4 {
  line-height: 1em;
  margin-top: 0em;
  font-weight: 600;
  color: #00339c;
}

.owl-carousel .owl-item .item {
  width: 100%;
}

.owl-carousel .owl-item .item img {
  border-radius: 1.3em !important;
}

/* ========= SECCIÓN: BENEFICIOS (ProyectosDest) ========= */
.ProyectosDest {
  background: #e9f0fb;
  margin: 2em 0 0 0;
  padding: 4em 0 4em 0;
}

.ProyectosDest .Thumb {
  background: #ffffff;
  text-align: left;
  padding: 1.2em 1.8em 0.4em 1.8em;
  border-radius: 0.8em;
  box-shadow: 0 6px 19px rgba(0, 0, 0, 0.05);
  display: inline-block;
  vertical-align: top;
  width: 84.1%;
  margin: 0.6em 0.8em;
  height: 100%;
}

@media screen and (min-width: 991px) {
  .ProyectosDest .Thumb {
    width: 30.1%;
    height: 148px;
  }
}

.ProyectosDest .Thumb h4 {
  margin-top: 0.4em;
  font-size: 1.7em;
}

.ProyectosDest .Thumb img {
  width: 60px;
  height: auto;
}

/* ========= SECCIÓN: TERRENOS ========= */
.Terrenos {
  margin-top: -0.5em;
  padding: 4em 0 4.8em 0;
  text-align: center;
  background: #00339c;
  font-family: 'Montserrat', sans-serif;
}

.Terrenos h2 {
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.Terrenos p {
  color: #ffffff;
  font-size: 1.1em;
}

.Terrenos .Title {
  text-align: center;
  margin-bottom: 1em;
}

.Terrenos .Title h5 {
  font-size: 1.8em;
  line-height: 1.4em;
  color: #ffffff;
  font-weight: 600;
}

.Terrenos .Title span {
  color: #ffffff;
}

.Terrenos .Txt {
  text-align: justify;
}

.Terrenos .Txt h5 {
  color: #ffffff;
  font-size: 1.6em;
  line-height: 1.4em;
  font-weight: 600;
}

.Terrenos .Txt p {
  color: #ffffff;
  font-size: 1.1em;
  line-height: 1.6em;
}

.Terrenos .Thumb {
  background: #ffffff;
  text-align: left;
  padding: 1.9em 1.8em 0.4em 1.8em;
  border-radius: 0.8em;
  box-shadow: 0 6px 19px rgba(0, 0, 0, 0.05);
  display: inline-block;
  vertical-align: top;
  width: 84.1%;
  margin: 0.6em 0.8em;
  height: 100%;
}

@media screen and (min-width: 991px) {
  .Terrenos .Thumb {
    width: 30.1%;
    height: 148px;
  }
}

.Terrenos .Thumb h4 {
  margin-top: 0.4em;
  font-size: 1.4em;
  color: #222;
}

.Terrenos .Thumb img {
  width: 60px;
  height: auto;
}

.Terrenos hr {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  margin: 3em 0;
}

/* ========= ELEMENTOS DECORATIVOS FIJOS (CEJAS) ========= */
.CejaIzq img,
.CejaDer img {
  height: 120px;
}

@media screen and (min-width: 991px) {
  .CejaIzq img,
  .CejaDer img {
    height: 320px;
  }
}

.CejaDer {
  right: 0;
  top: 33%;
  z-index: 998;
  position: fixed;
}

.CejaIzq {
  left: 0;
  top: 57%;
  z-index: 998;
  position: fixed;
}

/* ========= BOTÓN SCROLL TOP ========= */
.ScrollTop {
  position: fixed;
  bottom: 1.4em;
  right: 3em;
  width: 21px;
  height: 21px;
  z-index: 998;
  display: none;
}

.ScrollTop i {
  background: #c4020a;
  color: #ffffff;
  font-size: 2.4em;
  border-radius: 0 0 0 0;
  padding: 0.1em;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.17);
  cursor: pointer;
}

.ScrollTop a {
  color: #ffffff;
  text-decoration: none;
}

/* ========= SECCIÓN: UBICACIONES ========= */
.Ubicaciones {
  padding: 4em 0;
  background: #f8f9fa;
}

.Ubicaciones h2 {
  color: #00339c;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.Ubicaciones > div > div:first-child p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.ubicaciones-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Grid de 2 columnas para ubicaciones */
.ubicaciones-grid-two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Elemento que ocupa todo el ancho (2 columnas) */
.ubicaciones-grid-two-columns .full-width {
  grid-column: 1 / -1;
}

@media screen and (max-width: 992px) {
  .ubicaciones-grid-two-columns {
    grid-template-columns: 1fr;
  }
}

.location-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.location-content {
  padding: 1.5rem;
}

.location-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.construction-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.location-details h5 {
  margin: 0 0 0.5rem 0;
  color: #00339c;
  font-size: 1.3rem;
  font-weight: 600;
}

.construction-label {
  display: inline-block;
  background: #0025e4;
  color: white;
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.location-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}

.location-address i {
  color: #0025e4;
  font-size: 1.2rem;
}

.location-map {
  position: relative;
  margin-top: 1rem;
}

.btn-directions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #0025e4 !important;
  color: white !important;
  padding: 0.4em 0.8em !important;
  border-radius: 8px;
  font-size: 0.85rem !important;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 8px rgba(0, 37, 228, 0.3);
  text-transform: none !important;
  height: auto !important;
  line-height: normal !important;
}

.btn-directions i {
  font-size: 1.2rem;
}

/* Formulario de contacto */
.contacto-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 100px;
}

.contacto-form h5 {
  color: #00339c;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contacto-form p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contacto-form .input-field {
  margin-bottom: 1.5rem;
}

.contacto-form button {
  width: 100%;
  margin-top: 1rem;
}

/* Formulario al lado de última ubicación */
.contacto-form-bottom {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contacto-form-bottom h5 {
  color: #00339c;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contacto-form-bottom p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.contacto-form-bottom .input-field {
  margin-bottom: 1.5rem;
}

.contacto-form-bottom button {
  width: 100%;
  margin-top: 1rem;
}

/* ========= LOCATION GROUP (Complejo Kidd Avenue) ========= */
.location-group {
    background: #ffffff;
    border-radius: 0.8em;
    box-shadow: 0 6px 19px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    border-left: 4px solid #0025e4;
    padding: 1.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.location-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.group-title {
    color: #0025e4;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.locations-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.location-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    padding: 0.8rem;
    border-radius: 0.5em;
    transition: all 0.2s ease;
    border: 1px solid #e8e8e8;
}

.location-mini:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.mini-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.construction-mini {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.mini-info div h6 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.mini-info div p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.btn-mini {
    background: #0025e4;
    color: white;
    padding: 0.4rem;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
}

.btn-mini:hover {
    background: #001da8;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
}

.btn-mini i {
    font-size: 1rem;
}

.group-map {
    margin-top: 1rem;
    border-radius: 0.5em;
    overflow: hidden;
}

/* Responsividad para location-group */
@media screen and (max-width: 992px) {
    .locations-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* ========= SECCIÓN: ¿TIENES UNA DUDA? ========= */
.ContactoExpr {
  padding: 2.6em 0 4em 0;
  background: #f1f1f1;
}

/* Asegurar que el container mantenga el ancho de Materialize */
.ContactoExpr .container {
  width: 90% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

@media only screen and (min-width: 601px) {
  .ContactoExpr .container {
    width: 85% !important;
  }
}

@media only screen and (min-width: 993px) {
  .ContactoExpr .container {
    width: 70% !important;
  }
}

.ContactoExpr .Duda h4 {
  color: #00339c;
  font-size: 1.8em;
  font-weight: 500;
  text-transform: uppercase;
}

.ContactoExpr .Duda h6 {
  color: #666;
  font-weight: normal;
}

.ContactoExpr .Llama a {
  margin-right: 1em;
}

.ContactoExpr .Llama p {
  font-size: 1.5em;
  line-height: 1em;
  color: #333;
}

.ContactoExpr .Llama p span {
  font-weight: 600;
  color: #0025e4;
}

.ContactoExpr .Llama a,
.ContactoExpr .Llama p {
  display: inline-block;
  vertical-align: middle;
}

/* ========= FOOTER ========= */
.Footer {
  padding: 2em 1.6em 0.8em 1.6em;
  text-align: center;
  background: #00339c;
  color: #ffffff;
  margin-bottom: 0 !important;
}

/* Asegurar que el container del footer mantenga el ancho de Materialize */
.Footer .container {
  width: 90% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}

@media only screen and (min-width: 601px) {
  .Footer .container {
    width: 85% !important;
  }
}

@media only screen and (min-width: 993px) {
  .Footer .container {
    width: 70% !important;
  }
}

.Footer h6 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.2em;
  margin-bottom: 1em;
  text-transform: uppercase;
}

.Footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.Footer ul li {
  margin: 0.5em 0;
  line-height: 1.6em;
}

.Footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.Footer a:hover {
  color: #ce020a;
}

.Footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2em 0 1em 0;
}

.Footer .Allright {
  text-align: center;
}

.Footer .Allright p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  margin: 0;
  padding-bottom: 0;
}

/* Eliminar cualquier espacio después del footer */
.Footer .row:last-child {
  margin-bottom: 0 !important;
}

.Footer .container {
  padding-bottom: 0 !important;
}

/* Asegurar que el footer sea el último elemento sin espacio */
footer.Footer {
  display: block;
  margin: 0 !important;
  padding-bottom: 1em !important;
}

/* Eliminar espacio en elementos después del footer */
footer.Footer ~ * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* ========= MODAL DE IDIOMAS ========= */
.idiomas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

@media screen and (max-width: 768px) {
  .idiomas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.idioma-item {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.idioma-item:hover {
  background: #0025e4;
  border-color: #0025e4;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 37, 228, 0.3);
}

.idioma-item:hover span {
  color: white;
}

.idioma-item img {
  width: 50px;
  height: auto;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.idioma-item span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

/* Ocultar la barra de Google Translate */
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.skiptranslate {
  display: none !important;
}

#google_translate_element {
  display: none !important;
}

.goog-te-gadget {
  display: none !important;
}

/* Ocultar el iframe de Google Translate */
iframe.skiptranslate {
  display: none !important;
}

/* Ajustar el body cuando Google Translate está activo */
body.translated-ltr {
  top: 0 !important;
}

body.translated-rtl {
  top: 0 !important;
}

/* Ocultar el logo de Google Translate */
.goog-logo-link {
  display: none !important;
}

.goog-te-gadget img {
  display: none !important;
}

/* ========= AJUSTES ESPECÍFICOS MÓVIL ========= */

/* Arreglos solo para móvil - SIN romper el diseño original */
@media screen and (max-width: 768px) {

  /* Quitar altura fija del contenedor de imágenes */
  .images-grid-container {
    height: auto !important;
    display: block !important;
  }

  /* Imagen principal - ajustar al contenedor */
  .main-image-grid {
    width: 100%;
    margin-bottom: 1rem;
  }

  .main-grid-image {
    width: 100%;
    height: auto;
  }

  /* Botones de galería - vertical en móvil */
  .secondary-images-grid-simple {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .galeria-button-large {
    width: 100% !important;
    flex: none !important;
  }

  /* Padding del contenedor principal en móvil */
  .casa-destacada-main {
    padding: 1rem !important;
  }

  /* Info de propiedad - sin padding left en móvil */
  .property-details {
    padding-left: 0 !important;
    padding-top: 1.5rem !important;
  }
}

/* Prevenir overflow horizontal y espacio blanco al final */
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

img {
  max-width: 100%;
  height: auto;
}

/* Fix adicional para contenedores que causan overflow */
.row, .col {
  max-width: 100% !important;
}

/* Fix para tablas y elementos anchos */
table, iframe {
  max-width: 100% !important;
}

/* Fix para owl carousel */
.owl-carousel {
  max-width: 100% !important;
}

/* Fix para ubicaciones grid */
.ubicaciones-grid-two-columns {
  max-width: 100% !important;
}

.location-card, .location-group {
  max-width: 100% !important;
}

