/* ===================================================================
   MyR Corredoras - Refactored Stylesheet
====================================================================== */

/* -------------------------------------------------------------------
 * ## 1. Root Variables
 * ------------------------------------------------------------------- */
:root {
    --dark-blue: #182D56;      /* Original blue, used for testimonial text */
    --gold: #b28f5e;          /* A more subdued, elegant gold */
    --dark-gray: #2a2a2a;     /* For footer */
    --light-gray: #f8f9fa;    /* For card backgrounds */
    --white: #FFFFFF;
    --text-color: #555;
    --heading-color: #333;
    --heading-font: 'Merriweather', serif;
    --body-font: 'Raleway', sans-serif;
}


/* -------------------------------------------------------------------
 * ## 2. Base & Typography
 * ------------------------------------------------------------------- */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--heading-color);
}

.text-gold {
    color: var(--gold) !important;
}


/* -------------------------------------------------------------------
 * ## 3. Buttons
 * ------------------------------------------------------------------- */
.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.btn-gold:hover, .btn-gold:focus {
    background-color: #a17d4e; /* Darker gold */
    border-color: #a17d4e;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-gold {
    color: var(--gold);
    border-color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--white);
}


/* -------------------------------------------------------------------
 * ## 4. Navbar
 * ------------------------------------------------------------------- */
#main-nav {
    transition: all 0.3s ease;
    border-bottom: 4px solid var(--gold);
}

#main-nav .navbar-brand img {
    height: 40px;
}

#main-nav .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

#main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease-in-out;
}

#main-nav .nav-link:hover, 
#main-nav .nav-link.active {
    color: var(--gold) !important;
}

#main-nav .nav-link:hover::after,
#main-nav .nav-item.active .nav-link::after {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--dark-blue);
}

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


/* -------------------------------------------------------------------
 * ## 5. Hero Carousel
 * ------------------------------------------------------------------- */
#hero-carousel .carousel-item {
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
}

#hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 45, 86, 0.6);
}

#hero-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    bottom: 20%;
    transform: translateY(0); 
    text-align: center;
}

#hero-carousel .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero-carousel .carousel-caption p {
    font-size: 1.25rem;
    color: var(--white);
}


/* -------------------------------------------------------------------
 * ## 6. Section Title
 * ------------------------------------------------------------------- */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--gold);
}

.section-title.text-start h2::after {
    left: 0;
    transform: translateX(0);
}


/* -------------------------------------------------------------------
 * ## 7. Property Card
 * ------------------------------------------------------------------- */
.property-card {
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.property-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.property-card .price {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.property-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.property-card .features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
    color: #6c757d;
}

.property-card .features i {
    color: var(--gold);
    margin-right: 5px;
}


/* -------------------------------------------------------------------
 * ## 8. Testimonial Card
 * ------------------------------------------------------------------- */
#testimonials {
    background-color: var(--dark-blue);
}

#testimonials .section-title h2, 
#testimonials p, 
#testimonials h5 {
    color: var(--white);
}

.testimonial-card {
    border: none;
    background-color: var(--light-gray);
    color: var(--dark-blue);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--gold);
    border-radius: 50%;
    margin-bottom: 15px;
}

#testimonials .testimonial-card .name {
    font-weight: 700;
    color: var(--dark-blue);
    font-family: var(--heading-font);
}


/* -------------------------------------------------------------------
 * ## 9. Contact Form
 * ------------------------------------------------------------------- */
#contact .card {
    border: 1px solid var(--dark-blue);
    border-top: 4px solid var(--gold);
    border-radius: 8px;
}

#contact .form-control {
    border-radius: 4px; /* Suavizamos las esquinas */
    border: 1px solid var(--dark-blue);
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-width 0.2s ease-in-out;
}

#contact .form-control:focus {
    border-width: 2px; /* Hacemos el borde más grueso al enfocar */
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(178, 143, 94, 0.25);
    outline: none;
}


/* -------------------------------------------------------------------
 * ## 10. Footer
 * ------------------------------------------------------------------- */
.bg-dark-gray {
    background-color: var(--dark-gray) !important;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white);
}

footer h5 {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

footer .social-icons a:hover {
    background-color: var(--gold);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------
 * ## 11. Admin Modal Styles
 * ------------------------------------------------------------------- */
#adminModal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#adminModal .modal-header {
    background-color: var(--dark-blue);
    color: var(--white);
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#adminModal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#adminModal .modal-footer .btn {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
}

/* Elegant Theme Overrides */
:root {
    --font-heading: 'Merriweather', serif;
    --font-body: 'Raleway', sans-serif;
    --color-gold: #b28f5e; /* A more subdued, elegant gold */
    --color-dark-gray: #2a2a2a;
    --color-light-gray: #f8f9fa;
    --color-text: #555;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #333;
}

.btn-gold {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-gold:hover, .btn-gold:focus {
    background-color: #a17d4e; /* Darker gold */
    border-color: #a17d4e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-gold {
    color: var(--color-gold);
    border-color: var(--color-gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--color-gold);
    color: #fff;
}

.text-gold {
    color: var(--color-gold) !important;
}

/* Navbar */
#main-nav {
    transition: all 0.3s ease;
}
#main-nav .navbar-brand img {
    height: 80px;
}
#main-nav .nav-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
#main-nav .nav-link:hover, #main-nav .nav-link.active {
    color: var(--color-gold);
}

/* Hero Carousel */
#hero-carousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    bottom: 20%;
}
#hero-carousel .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Section Title */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-gold);
}
.section-title.text-start h2::after {
    left: 0;
    transform: translateX(0);
}

/* Property Card */
.property-card {
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.property-card .price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
}
.property-card .features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
}

/* Testimonial Card */
.testimonial-card {
    border: none;
    background-color: var(--color-light-gray);
    color: var(--dark-blue);
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--color-gold);
}
#testimonials .testimonial-card .name {
    font-weight: 700;
    color: var(--dark-blue);
}

/* Contact */
#contact .form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
}
#contact .form-control:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 0.25rem rgba(178, 143, 94, 0.25);
}

/* Footer */
.bg-dark-gray {
    background-color: var(--color-dark-gray) !important;
}
footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #fff;
}
footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin-right: 10px;
    transition: all 0.3s ease;
}
footer .social-icons a:hover {
    background-color: var(--color-gold);
    color: #fff;
}

/* -------------------------------------------------------------------
 * ## 12. Admin Dashboard Styles
 * ------------------------------------------------------------------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--dark-blue);
    padding: 20px;
    color: var(--white);
}
.sidebar .logo-container {
    text-align: center;
    margin-bottom: 30px;
}
.sidebar .logo-container img {
    max-width: 80%;
    height: auto;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.sidebar .nav-link.active {
    background-color: var(--gold);
    color: var(--white);
    font-weight: bold;
}
.main-content {
    margin-left: 250px;
    padding: 20px;
}
.top-bar {
    background-color: var(--gold);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    color: var(--white);
}
.table img.thumbnail-img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
#addSlideModal .modal-header {
    background-color: var(--dark-blue);
    color: var(--white);
    border-bottom: 4px solid var(--gold);
}
#addSlideModal .modal-title {
    color: var(--white); /* Asegura que el título sea blanco */
}
#addSlideModal .modal-footer {
    border-top: none;
    padding: 1rem;
}
#addSlideModal .modal-footer .btn-secondary {
    background-color: var(--dark-blue);
}

/* -------------------------------------------------------------------
 * ## 13. Proyectos Asociados
 * ------------------------------------------------------------------- */
.bg-dark-blue {
    background-color: var(--dark-blue);
}

#projects .section-title h2::after {
    background-color: var(--white); /* Línea del título en blanco sobre fondo azul */
}

.project-card-assoc {
    background-color: var(--white);
    color: var(--text-color);
    border: 4px solid var(--gold);
    border-radius: 1rem;
    overflow: hidden;
}

.project-card-assoc .card-title {
    font-family: var(--heading-font);
    font-weight: 900;
    color: var(--dark-blue);
}

.project-card-assoc img {
    object-fit: cover;
}

/* Detalle dorado como separador */
#projects {
    position: relative;
    border-top: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}
