html, body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    scroll-snap-type: y mandatory;
}

header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

header .logo img {
    height: 60px;
}

header .logo {
    flex: 1;
}

.desktop-nav {
    flex: 2;
}

.desktop-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.desktop-nav ul li {
    margin-left: 20px;
}

.desktop-nav ul li a {
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
}

.desktop-nav ul li a:hover {
    color: #000;
}

.burger {
    display: none;
}

.burger .line1,
.burger .line2,
.burger .line3 {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    .burger {
        display: block;
    }
    .mobile-nav.active {
        display: block;
        position: absolute;
        width: 100%;
        top: 80px;
        left: 0;
        background-color: #ffffff;
        z-index: 1000;
    }
    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #ffffff;
    }
    .mobile-nav ul li a {
        color: #333;
        padding: 10px 20px;
        display: block;
        text-decoration: none;
        text-transform: uppercase;
    }
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 0 20px;
    background: url('../images/homepage_background.jpg') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    text-align: center; 
    margin: 0 auto; 
    width: 100%;
    font-size: 3rem;
    font-weight: bold;
    z-index: 2;
}

.hero p {
    font-size: 1.5rem;
    z-index: 2;
}

.hero .btn {
    background-color: white;
    color: black;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 2;
    align-self: center;
    max-width: 150px;
    margin-top: 20px;
}

.hero .btn:hover {
    background-color: #ebebeb;
}

.hero .social-media-icons {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
    margin-bottom: 20px;
}

.hero .social-icon {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.hero .social-icon:hover {
    color: #1dace5;
}

#nuestros-servicios, .hero {
    scroll-snap-align: start;
}

#nuestros-servicios {
    min-height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 2em;
    background-color: #f5f5f5;
}

.services-content {
    width: 50%;
}

.services-content h2 {
    font-size: 2rem;
    margin-bottom: 1em;
}

.services-content p {
    font-size: 2rem;
    margin-bottom: 1em;
}

.services-image {
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

.services-image img {
    max-width: 100%;
    height: auto;
    border-top-left-radius: 20% 20%;
    border-top-right-radius: 20% 20%;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1dace5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #444;
}

@media (max-width: 768px) {
    #nuestros-servicios {
        flex-direction: column;
        justify-content: center;
        align-items: center; 
    }

    .services-content, .services-image {
        width: 100%;
        padding: 1em 0;
        text-align: center;
    }

    .services-content h2, 
    .services-content p, 
    .btn {
        max-width: calc(100% - 20px); 
        box-sizing: border-box; 
        margin-left: auto; 
        margin-right: auto;
    }
}

    .services-image {
        order: -1;
        justify-content: center;
    }


#service-details {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    margin: 20px;
}

#service-1 { background-image: url('../images/service-1.png'); }
#service-2 { background-image: url('../images/service-2.png'); }
#service-3 { background-image: url('../images/service-3.png'); }
#service-4 { background-image: url('../images/service-4.png'); }
#service-5 { background-image: url('../images/service-5.png'); }
#service-6 { background-image: url('../images/service-6.png'); }

.service-card {
    flex: 0 0 calc(33.333% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: calc(50vh - 40px);
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.service-card .service-title {
    background-color: rgba(128, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    text-align: center;
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: 768px) {
    .service-card {
        flex: 0 0 100%;
        height: auto;
    }
    .contact-container h2 {
        text-align: center;
    }
    .form-field button {
        display: block;
        margin: 0 auto;
    }
    .hero p {
        text-align: center;
    }
}

#contact-section {
    background: #f0f0f0;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    background: white;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.contact-container h2 {
    color: #333;
    margin-bottom: 25px;
}

.form-field {
    margin-bottom: 15px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-field textarea {
    height: 150px;
    resize: vertical;
}

.form-field button {
    background: #1dace5;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-field button:hover {
    background: #594ac1;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 25px;
    }
}

footer#footer-section {
    background-color: #f5f5f5; 
    color: #333; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-align: center; 
    padding: 2rem 0; 
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.05); 
}

footer#footer-section .company-info {
    margin: 0 auto; 
    padding: 1rem; 
    display: block; 
    max-width: 640px; 
}

footer .social-media-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer .social-icon {
    font-size: 1.5rem;
    color: black;
    transition: color 0.3s ease;
}

footer .social-icon:hover {
    color: #ddd;
}

@media (max-width: 768px) {
    footer#footer-section .company-info {
        padding: 1rem 0.5rem; 
    }
}

a {
    text-decoration: none;
}

.main-content {
    max-width: 1200px;
    margin: auto;
    padding: 50px 15px;
}

.service-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

.text-content {
    flex: 1;
    margin-right: 50px;
}

.text-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .service-detail {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .image-content img {
        max-width: 80%;
    }
}

.blog-index {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.blog-index h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.blog-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.blog-post a {
    color: #0056b3;
    text-decoration: none;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
}

.post-content {
    padding: 2rem;
}

.post-content h2 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.post-content .date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.read-more {
    background-color: #b0d3f7;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.3rem;
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #004494;
}

@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}

div.success {
    color: white;
    background-color: #4CAF50; 
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

div.error {
    color: white;
    background-color: #f44336; 
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Ensure this is included in your CSS file */

header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.article-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 50px;
    padding: 0px 0px;
    z-index: 1;
    position: relative; 
    box-shadow: none;
}

.article-cover-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.article-intro {
    font-size: 1.2rem;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: #444;
}

.rich-text p {
    margin-bottom: 1rem;
}

.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
