/* Base Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #f5f5f5;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.navbar {
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f5f5f5;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section img {
    max-width: 100%;
    height: auto;
}

.parallax {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.parallax h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Carousel */
#heroCarousel {
    height: 1000px;
    overflow: hidden;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
}

#heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#myCarousel {
    margin-bottom: 80px;
}

.carousel-separator {
    height: 120px;
}

/* Text Blocks */
.text-block {
    margin-left: 100px;
    margin-right: 50px;
    margin-bottom: 0px;
    margin-top: 200px;
}

.text-block h2 {
    margin-bottom: 20px;
}

.text-block p {
    margin-bottom: 30px;
}

.text-overlay {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 15px;
    display: inline-block;
    margin-bottom: 15px;
}

.text-overlay h1,
.text-overlay p {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.text-overlay .btn {
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.title-overlay {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 3px;
    display: inline-block;
}

.custom-spacing {
    margin-top: 15vh;
}

/* Section Styles */
section {
    padding: 4rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Card Styles */
.card {
    height: 100%;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-text {
    flex-grow: 1;
}

/* Grid and Layout */
.proyecto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.proyecto img {
    width: 100%;
    height: auto;
}

#proyectos .col-md-4,
.container .col-md-4 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #555;
}

.whatsapp {
    background-color: #25D366;
}

.whatsapp:hover {
    background-color: #128C7E;
}

/* Footer */
footer {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #ccc;
}

/* Media Queries */
@media (max-width: 991px) {
    .card-img-top {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #f9f9f9;
        width: 100%;
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
    }

    .dropdown-content.show {
        display: block;
    }

    .dropdown-content a {
        padding: 10px;
    }

    .navbar-brand {
        margin: 0 auto;
    }

    /* Hero Section */
    #heroCarousel {
        height: 400px !important;
    }

    .hero-section img.position-absolute {
        width: 60% !important;
        max-width: 200px;
        top: 40% !important;
    }

    .div-logo-texto {
        margin-top: 0;
    }

    .texto {
        margin-top: 0;
    }

    .text-block {
        position: relative !important;
        width: 90% !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 10px auto !important;
        text-align: center;
        padding: 10px;
    }

    .hero-section .btn {
        display: block;
        margin: 15px auto;
        max-width: 280px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Cards and Grid */
    .card {
        margin: 15px auto !important;
    }
    
    .card-img-top {
        height: 400px !important;
    }
    
    .col-md-4, 
    .col-md-6 {
        margin-bottom: 30px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .container .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    #heroCarousel {
        height: 400px !important;
    }

    .hero-section img.position-absolute {
        max-width: 180px;
    }
}

/* Add this new selector to your CSS file */
.remodelacion-services .card-img-top {
    height: 400px;
    object-fit: cover;
    width: 100%;
}