/* =======================
   Estilos Mejorados - styles_corrected.css
   =======================
   Se corrigieron duplicaciones de selectores y definiciones redundantes,
   se consolidaron animaciones y se mejoró la estructura general.
*/

/* Hero Section */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    position: relative;
    margin-bottom: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('resources/imagenes/CasaMarcela/EXTERIOR/IMG_6797.png') no-repeat center center/cover;
    opacity: 1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section .form-container {
    background: rgba(0, 0, 0, 0.9);
}

/* Botón "Agenda Visita" */
.agenda-visita-btn {
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    z-index: 3;
    position: relative;
}

.agenda-visita-btn:hover {
    background-color: #cc0000;
    transform: scale(1.05);
    color: #ffffff;
}

.agenda-visita-btn:active {
    background-color: #990000;
    transform: scale(0.98);
    color: #ffffff;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: #1b4d3e;
    font-weight: bold;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.navbar-toggler {
    border-color: #1b4d3e;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231b4d3e' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav {
    margin-left: auto;
}

@media (max-width: 991px) {
    .navbar-nav {
        align-items: flex-end;
        text-align: right;
    }
    .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-link {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

.nav-item .nav-link {
    color: #1b4d3e !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
}

.nav-item .nav-link:hover {
    color: #143d31 !important;
    transform: translateY(-2px);
}

/* Beneficios Destacados */
.icon {
    font-size: 3rem;
    color: #1b4d3e;
}

h1, h2, h3, h4, h5, p {
    font-family: 'Roboto', sans-serif;
}

h3 {
    margin-top: 20px;
    font-weight: bold;
    color: #1b4d3e;
}

p {
    color: #2c3e50;
}

/* Imágenes de Propiedades */
.card {
    border: none;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.card-title {
    font-weight: bold;
    color: #1b4d3e;
}

.card-text {
    color: #555555;
}

/* Acerca de la Compañía */
#propiedades {
    background-color: #e8e8e8;
}

.features-section {
    color: #000000;
}

.blockquote-footer {
    font-weight: bold;
    color: #000000;
}

/* Footer */
footer p,
footer a {
    color: #ffffff;
}
footer a:hover {
    color: #18bc9c;
}

/* Formularios */
.form-control {
    border-radius: 0;
}

.btn-success {
    background-color: #1b4d3e;
    border: none;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #104e4b;
}

/* Botón Primario */
.btn-primary {
    background-color: #1b4d3e;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #104e4b;
}

/* Global Body y Tipografía */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #1b4d3e;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1b4d3e;
}

.btn-primary:hover {
    background-color: #143d31;
    transform: translateY(-2px);
}

.table-container {
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2),
                0px -4px 8px rgba(0, 0, 0, 0.1),
                -4px 0px 8px rgba(0, 0, 0, 0.1),
                4px 0px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

td, th {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: left;
}

thead th {
    background-color: #1b4d3e;
    color: #fff;
    text-transform: uppercase;
}

tbody tr:hover {
    background-color: #e6f4ea;
}

/* Variables de Color */
:root {
    --black: #0A0908;
    --white: #FFF;
    --gray: #22333B;
    --beige: #EAE0D5;
    --brown: #5E503F;
}

/* Tipografía Grande */
.fs-large {
    font-size: 2.5rem !important;
}

/* Clases de Color de Texto */
.text-black-vp { color: var(--black); }
.text-white-vp { color: var(--white); }
.text-gray-vp { color: var(--gray); }
.text-beige-vp { color: var(--beige); }
.text-brown-vp { color: var(--brown); }

/* Clases de Fondo */
.bg-black-vp { background-color: var(--black); }
.bg-white-vp { background-color: var(--white); }
.bg-gray-vp  { background-color: var(--gray); }
.bg-beige-vp { background-color: var(--beige); }
.bg-brown-vp { background-color: var(--brown); }

/* Parallax Header */
.parallax-header {
    background-image: url('resources/imagenes/CasaMarcela/EXTERIOR/IMG_6797.png');
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.content {
    height: 100vh;
    background-color: white;
    padding: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.img-container,
.video-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.img-container img,
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.img-container img:hover,
.video-container video:hover {
    transform: scale(1.05);
}


@media screen and (max-width: 990px) {
    .card-container { width: 80%; }
}

.card {
    padding: 16px;
    border-radius: 10px;
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: var(--black);
    z-index: 1;
    box-shadow: rgba(0, 0, 0, 0.09) 0px 2px 1px,
                rgba(0, 0, 0, 0.09) 0px 4px 2px,
                rgba(0, 0, 0, 0.09) 0px 8px 4px,
                rgba(0, 0, 0, 0.09) 0px 16px 8px,
                rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.card-bg {
    --card-bg-color-2: rgb(255, 255, 255);
    --border-r-fusion: 100px;
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(90deg, var(--card-bg-color-2) 50%, var(--beige) 50%);
    z-index: -1;
}

.card-bg::before {
    content: "";
    width: 100%;
    height: 50%;
    background: var(--beige);
    position: absolute;
    border-bottom-left-radius: var(--border-r-fusion);
}

.card-bg::after {
    content: "";
    width: 100%;
    height: 50%;
    background: var(--card-bg-color-2);
    position: absolute;
    bottom: 0;
    border-top-right-radius: var(--border-r-fusion);
}

/* Tarjeta Testimonio */
.testimonial-card {
    width: 340px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.testimonios-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-footer {
    background-color: rgba(78,112,97,0.006);
    color: #1b4d3e;
}



/* Modal de Imágenes/Vídeo */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
}

body.no-scroll { overflow: hidden; }

.modal-content {
    object-fit: inherit;
    width: auto !important;
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    display: block;
}

#caption {
    color: #f1f1f1;
    text-align: center;
    padding: 10px;
    font-size: 20px;
}

.close {
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.close:hover,
.close:focus {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .close {
        top: 10px;
        right: 10px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

/* Botones Flotantes */
.floating-button-right,
.floating-button-left {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
}

.floating-button-right {
    right: 20px;
    background-color: #1b4d3e;
    color: white;
    animation: gentle-pulse 2s infinite;
}

.floating-button-right:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 77, 62, 0.3);
    background-color: #28a745;
}

.floating-button-left {
    left: 20px;
    background-color: #25D366;
    color: white;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.floating-button-left i { margin: 0; }

.floating-button-left span { display: none; }

.floating-button-left:hover {
    background-color: #198754;
    width: 180px;
    border-radius: 40px;
    padding: 10px 8px;
    height: 50px;
    font-size: 16px;
}

@keyframes gentle-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}



@media (min-width: 768px) {
    .navbar-nav { flex-direction: row; }
    .map-frame { min-height: 500px; }
}

/* Contenedor Mapa */
.map-container {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.map-frame {
    width: 100%;
    min-height: 500px;
}

@media (max-width: 768px) {
    .map-frame { min-height: 400px; }
}
