* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Header and Navigation */
header {
    z-index: 110;
    position: fixed;
    width: 100%;
}

#btn-menu {
    display: none;
}

header label {
    display: none;
    width: 20px;
    height: 37px;
    cursor: pointer;
}

.burger-icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #561b55;
}

.menu ul {
    height: 70px;
    display: flex;
    width: 100%;
    list-style: none;
    background-color: white;
    justify-content: flex-end;
    align-items: center;
}

.menu ul img {
    padding-right: 10%;
    height: 80%;
}

.menu li a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #561b55;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5em;
}

.menu li a:hover {
    color: white;
}

.menu li {
    border-left: 1px solid #561b55;
    transition: background-color 0.4s;
}

.menu li:hover {
    background-color: #561b55;
}

/* Sections */
section {
    width: 100%;
    padding: 0;
    margin: 0;
}

#home {
    background-color: #d59ad2;
    height: 100vh; /* Use viewport height to cover the full screen #d59ad2*/
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(assets/img/background_one.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover; /* Ensure the image covers the entire section without distortion */
    background-position: center; /* Center the background image */
    padding: 20px; /* Add some padding for smaller screens */
}

#home h1 {
    text-align: center;
    color: #d59ad2;
    opacity: 0;
    font-size: 4em;
    transition: opacity 1s, color 1.5s;
    font-family: 'Quicksand', sans-serif;
    margin: 0; /* Remove default margin */
    padding: 0 20px; 
}

#home h1:hover {
    opacity: 1;
    color: rgba(86, 27, 85, 0.55);
}

/* Services Section */
#servicios {
    padding: 5% 5%; /* Adjust padding for better spacing */
    text-align: center; /* Center the content */
}

#servicios h1 {
    padding: 15px 0 30px 0;
    font-family: 'Quicksand', sans-serif;
    color: #d59ad2;
    font-size: 3em;
}

#servicios article {
    width: 100%;
    max-width: 1200px; /* Limit maximum width for large screens */
    margin: 0 auto; /* Center the article */
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Add spacing between items */
    cursor: pointer;
}

#servicios article div {
    background-color: #561b55;
    border: solid 2px rgba(213, 169, 140, 0.29);
    height: 250px; /* Fixed height for consistency */
    width: 250px; /* Fixed width for consistency */
    transition: background-color 0.5s, transform 0.5s; /* Add transform for hover effect */
    position: relative; /* Required for absolute positioning of text */
    overflow: hidden; /* Ensure content stays within the box */
    display: flex; /* Use flexbox to center the image */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

#servicios article div img {
    max-width: 100%; /* Ensure the image doesn't exceed the container width */
    max-height: 100%; /* Ensure the image doesn't exceed the container height */
    object-fit: contain; /* Scale the image to fit the container without cropping */
    transition: opacity 0.5s;
}

#servicios article div p {
    position: absolute;
    z-index: 10;
    width: 80%; /* Adjust width for better readability */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the text */
    text-align: center;
    color: white;
    opacity: 0;
    font-size: 1.03em;
    font-family: 'Quicksand', sans-serif;
    transition: opacity 1s;
}

#servicios article div:hover {
    background-color: #D6A98D;
    transform: scale(1.05); /* Add a slight zoom effect on hover */
}

#servicios article div:hover p {
    opacity: 1;
}

#servicios article div:hover img {
    opacity: 0;
}

/* Procedures Section */
#procedimientos {
    width: 100%;
    padding: 20px; /* Add padding for better spacing on small screens */
    text-align: center; /* Center the content */
}

#procedimientos h1 {
    margin-top: 60px; /* Reduce top margin for smaller screens */
    margin-bottom: 30px; /* Reduce bottom margin for smaller screens */
    font-family: 'Quicksand', sans-serif;
    color: #d59ad2;
    font-size: 2.5em; /* Smaller font size for mobile */
}

#procedimientos div {
    display: inline-block; /* Use inline-block for better control */
    width: calc(12% - 20px); /* 4 images per row on larger screens */
    margin: 10px; /* Add margin between images */
    outline: solid white 4px;
    height: auto; /* Let the height adjust based on content */
}

#procedimientos div img {
    width: 100%; /* Ensure images fill their containers */
    height: auto; /* Maintain aspect ratio */
}

/* Facial Harmonization Section */
#armonizacion {
    padding: 40px 5%; /* Reduce padding for smaller screens */
    background-color: #f5f5f5; /* Add a light background for better contrast */
}

#armonizacion h1 {
    font-size: 2.5em; /* Smaller font size for mobile */
    text-align: center;
    margin-top: 20px; /* Reduce top margin */
    margin-bottom: 30px; /* Reduce bottom margin */
    font-family: 'Quicksand', sans-serif;
    color: #d59ad2;
}

#armonizacion article {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next row */
    justify-content: center; /* Center items horizontally */
    gap: 20px; /* Add spacing between items */
    margin: 0 auto; /* Center the article */
    max-width: 1200px; /* Limit maximum width for large screens */
}

#armonizacion article div {
    cursor: pointer;
    width: calc(50% - 20px); /* 2 items per row on larger screens */
    max-width: 510px; /* Limit maximum width */
    height: 300px; /* Fixed height for consistency */
    position: relative; /* Required for absolute positioning of text */
    overflow: hidden; /* Ensure content stays within the box */
    border-radius: 10px; /* Add rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

#armonizacion article div:hover {
    transform: translateY(-5px); /* Add a hover effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#armonizacion article div img {
    width: 100%; /* Ensure images fill their containers */
    height: 100%; /* Ensure images fill their containers */
    object-fit: cover; /* Ensure images cover the container without distortion */
    filter: blur(0) grayscale(0);
    opacity: 1;
    transition: filter 0.5s, opacity 0.5s;
}

#armonizacion article div p {
    font-family: 'Quicksand', sans-serif;
    position: absolute; /* Position text on top of the image */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center the text */
    width: 90%; /* Limit text width */
    padding: 20px; /* Add padding for better spacing */
    font-size: 1em; /* Smaller font size for mobile */
    text-align: justify;
    color: white; /* White text for better contrast */
    background-color: rgba(86, 27, 85, 0.8); /* Semi-transparent background */
    opacity: 0; /* Hide text by default */
    transition: opacity 0.5s;
    z-index: 10; /* Ensure text is above the image */
}

#armonizacion article div:hover img {
    filter: blur(0.1rem) grayscale(50%);
    opacity: 0.5;
}

#armonizacion article div:hover p {
    opacity: 1; /* Show text on hover */
}

/* Gallery Section */
#galeria {
    background-color: #f9f9f9; 
    height: auto; /* Change to auto to allow content to dictate height */
    padding-top: 4%;
    margin-top: 0px;
    overflow: hidden; /* Prevent overflow issues */
}

#galeria div {
    width: 100%;
    height: auto; /* Change to auto to allow content to dictate height */
    display: flex;
    justify-content: center; /* Center the slider */
}

#galeria article {
    width: 100%;
    height: auto; /* Change to auto to allow content to dictate height */
}

.slider {
    width: 750px; /* Adjust width for better control */
    height: 750px; /* Set a fixed height for the slider */
    margin: auto;
    position: relative;
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.7s;
    object-fit: cover; /* Ensure images cover the slider area */
}

.slider input[type="radio"] {
    position: relative;
    z-index: 50;
    margin: 5px;
}

.slider input[type="radio"]:checked~img {
    opacity: 1;
}

#galeria h1 {
    font-family: 'Quicksand', sans-serif;
    color: #d59ad2;
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Reviews Section - Mobile First */
#reviews {
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 20px;
    clear: both; /* Ensure it clears any floated elements */
}

#reviews h1 {
    font-family: 'Quicksand', sans-serif;
    color: #d59ad2;
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    margin-top: 20px;
}

#reviewForm {
    display: flex;
    flex-direction: column;
    max-width: 100%; 
    width: 100%; 
    margin: 0 auto; 
    padding: 20px; 
    box-sizing: border-box; 
}

#reviewForm label {
    margin-top: 10px;
    font-family: 'Quicksand', sans-serif;
    color: #561b55;
    font-size: 1.2em; /* Increased font size for labels */
    font-weight: bold; /* Make labels bold */
}

#reviewForm input, #reviewForm textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1em;
}

#reviewForm button {
    margin-top: 20px;
    padding: 10px;
    background-color: #561b55;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 1em;
    transition: background-color 0.3s;
}

#reviewForm button:hover {
    background-color: #d59ad2;
}

/* Reviews Display Section */
#reviewsDisplay {
    margin-top: 40px;
    text-align: center; /* Center the content */
}

#reviewsDisplay h2 {
    font-family: 'Quicksand', sans-serif;
    color: #d59ad2;
    font-size: 2em; /* Smaller font size for the title */
    margin-bottom: 20px;
    text-align: center; /* Center the title */
}

#reviewsList {
    list-style-type: none;
    padding: 0;
    max-width: 800px; /* Limit the width of the reviews list */
    margin: 0 auto; /* Center the reviews list */
}

#reviewsList li {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px; /* Rounded corners for the cards */
    font-family: 'Quicksand', sans-serif;
    color: #561b55;
    text-align: left; /* Align text to the left */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

#reviewsList li strong {
    color: #d59ad2;
    font-size: 1.2em; /* Larger font size for the name */
    display: block; /* Ensure the name is on its own line */
    margin-bottom: 10px; /* Add spacing below the name */
}

#reviewsList li p {
    margin: 10px 0; /* Add spacing around the description */
    font-size: 1em; /* Standard font size for the description */
    line-height: 1.5; /* Improve readability */
}

#reviewsList li .rating {
    font-size: 0.9em; /* Smaller font size for the rating */
    color: #888; /* Gray color for the rating */
    margin-top: 10px; /* Add spacing above the rating */
    display: block; /* Ensure the rating is on its own line */
}

#reviewsList li .rating {
    font-size: 0.9em; /* Smaller font size for the rating */
    color: #888; /* Gray color for the rating text */
    margin-top: 10px; /* Add spacing above the rating */
    display: block; /* Ensure the rating is on its own line */
}

#reviewsList li .stars {
    display: inline-block; /* Ensure stars are in a row */
    margin-top: 5px; /* Add spacing above the stars */
}

#reviewsList li .stars span {
    font-size: 1.2em; /* Size of the stars */
    color: #ccc; /* Default color for white stars */
}

#reviewsList li .stars span.yellow {
    color: #ffd700; /* Color for yellow stars */
}

/* Rating Slider Styles */
.rating-slider {
    position: relative;
    margin-top: 10px;
}

.rating-slider .stars {
    display: flex;
    justify-content: space-between;
    font-size: 1.5em;
    color: #ccc; /* Default color for stars */
    margin-bottom: 10px;
}

.rating-slider .stars span {
    cursor: pointer;
    transition: color 0.3s;
}

.rating-slider .stars span.yellow {
    color: #ffd700; /* Yellow color for selected stars */
}

.rating-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rating-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #561b55;
    border-radius: 50%;
    cursor: pointer;
}

.rating-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #561b55;
    border-radius: 50%;
    cursor: pointer;
}

/* Contact Section */
#contacto {
    background-image: url(assets/img/patron.png);
    background-color: #561b55;
    padding: 60px 20px; /* Adjust padding for smaller screens */
    margin-top: 60px;
    text-align: center; /* Center the content */
}

#contacto article {
    max-width: 400px; /* Limit maximum width for large screens */
    margin: 0 auto 40px; /* Center the articles and add spacing */
    text-align: left; /* Align text to the left */
}

#contacto .correo img {
    width: 50px;
    height: 50px;
    float: left;
    margin-right: 20px; /* Add spacing between icon and text */
}

#contacto .correo h2 {
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2em; /* Smaller font size for mobile */
    margin: 0; /* Remove default margin */
    line-height: 1.5; /* Improve readability */
}

#contacto .redes {
    display: flex;
    justify-content: center; /* Center the social media icons */
    gap: 20px; /* Add spacing between icons */
    margin-top: 20px; /* Add spacing above the social media icons */
}

#contacto .redes img {
    width: 50px; /* Smaller icons for mobile */
    height: 50px; /* Smaller icons for mobile */
    transition: transform 0.3s; /* Add hover effect */
}

#contacto .redes img:hover {
    transform: scale(1.1); /* Enlarge icons on hover */
}

#titulor {
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    color: white;
    font-size: 1.8em;
    margin-bottom: 20px; /* Add spacing below the title */
}

/* Styles for .contacto-item */
.contacto-item {
    display: flex; /* Use Flexbox for alignment */
    align-items: center; /* Center items vertically */
    justify-content: flex-start; /* Center items horizontally */
    gap: 10px; /* Add spacing between the icon and text */
    margin-bottom: 20px; /* Add spacing between items */
}

.contacto-item img {
    width: 30px; /* Adjust icon size */
    height: 30px; /* Adjust icon size */
}

.contacto-item h2 {
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2em;
    margin: 0; /* Remove default margin */
}

/* WhatsApp Button */
.btn-wap {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 100px;
    right: 30px;
    background-color: #561b55;
    border-radius: 50%; /* Use 50% for a perfect circle */
    text-align: center;
    box-shadow: 0px 1px 10px;
    z-index: 100;
    transition: background-color 0.3s;
    display: flex; /* Add flexbox to center the icon */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    line-height: 0; /* Reset line-height to avoid misalignment */
}

.btn-wap:hover {
    background-color: green;
}

.img-what {
    width: clamp(25px, 6vw, 35px); /* Responsive icon width: min 25px, max 35px, scales with viewport */
    height: clamp(25px, 6vw, 35px); /* Responsive icon height: min 25px, max 35px, scales with viewport */
    margin: 0; /* Remove any margin to ensure proper centering */
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #home h1 {
        font-size: 3.5em; /* Slightly smaller font size for large tablets and smaller desktops */
    }
}

@media (max-width: 992px) {
    #home h1 {
        font-size: 3em; /* Adjust font size for tablets */
    }
    
    #procedimientos div {
        width: calc(33.33% - 20px); /* 3 images per row on medium screens */
    }

    #armonizacion h1 {
        font-size: 2.2em; /* Adjust font size for tablets */
    }

    #armonizacion article div {
        width: calc(50% - 20px); /* 2 items per row on tablets */
    }

    #servicios h1 {
        font-size: 2.5em; /* Adjust font size for tablets */
    }

    #servicios article div {
        width: 200px; /* Smaller width for tablets */
        height: 200px; /* Smaller height for tablets */
    }
}
/* Responsive Styles */
@media (max-width: 768px) {

    #reviewForm {
        max-width: 600px; /* Wider form on larger screens */
    }

    #reviewsList li {
        padding: 20px;
        font-size: 1.1em;
    }

    #servicios h1 {
        font-size: 2em; /* Adjust font size for smaller tablets */
    }

    #servicios article div {
        width: 150px; /* Smaller width for smaller tablets */
        height: 150px; /* Smaller height for smaller tablets */
    }

    #servicios article div p {
        font-size: 0.9em; /* Smaller font size for smaller tablets */
    }

    #contacto {
        padding: 40px 20px; /* Adjust padding for smaller screens */
    }

    #contacto article {
        max-width: 100%; /* Allow articles to take full width on smaller screens */
    }

    #contacto .correo img {
        width: 40px; /* Smaller icons for mobile */
        height: 40px; /* Smaller icons for mobile */
    }

    #contacto .correo h2 {
        font-size: 1em; /* Smaller font size for mobile */
    }

    #contacto .redes img {
        width: 40px; /* Smaller icons for mobile */
        height: 40px; /* Smaller icons for mobile */
    }

    #titulor {
        font-size: 1.5em; /* Smaller font size for mobile */
    }

    #armonizacion h1 {
        font-size: 2em; /* Adjust font size for smaller tablets */
    }

    #armonizacion article div {
        width: calc(100% - 20px); /* 1 item per row on mobile */
    }

    #procedimientos h1 {
        font-size: 2em; /* Smaller font size for tablets */
    }

    #procedimientos div {
        width: calc(50% - 20px); /* 2 images per row on smaller tablets */
    }

    #home h1 {
        font-size: 2.5em; /* Adjust font size for smaller tablets */
    }

    .burger-icon {
        display: flex;
        z-index: 120; /* Ensure the burger icon is above the menu */
        position: fixed; /* Fix the burger icon in place */
        top: 20px; /* Adjust as needed */
        right: 20px; /* Adjust as needed */
        cursor: pointer; /* Add pointer cursor */
    }

    .menu ul {
        display: none; /* Hide the menu by default */
        flex-direction: column;
        height: auto;
        background-color: rgba(255, 255, 255, 0.75);
        position: absolute;
        top: 60px; /* Start the menu just below the burger icon */
        right: 0;
        width: 100%;
        z-index: 110; /* Ensure the menu is below the burger icon */
        transition: opacity 0.3s, visibility 0.3s; /* Add smooth transition */
        opacity: 0; /* Hide the menu by default */
        visibility: hidden; /* Hide the menu by default */
    }

    .menu ul.active {
        display: flex; /* Show the menu when active */
        opacity: 1; /* Make the menu fully visible */
        visibility: visible; /* Make the menu visible */
    }

    .menu ul img {
        display: none;
    }

    .menu li {
        border-left: none;
        border-bottom: 1px solid #561b55;
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 576px) {
    #contacto .correo img {
        width: 30px; /* Smaller icons for mobile */
        height: 30px; /* Smaller icons for mobile */
    }

    #contacto .correo h2 {
        font-size: 0.9em; /* Smaller font size for mobile */
    }

    #contacto .redes img {
        width: 30px; /* Smaller icons for mobile */
        height: 30px; /* Smaller icons for mobile */
    }

    #titulor {
        font-size: 1.2em; /* Smaller font size for mobile */
    }
    #home h1 {
        font-size: 2em; /* Adjust font size for mobile devices */
    }
    #procedimientos h1 {
        font-size: 1.8em; /* Smaller font size for mobile */
    }

    #procedimientos div {
        width: calc(100% - 20px); /* 1 image per row on mobile */
    }

    #armonizacion h1 {
        font-size: 1.8em; /* Adjust font size for mobile */
    }

    #armonizacion article div p {
        font-size: 0.9em; /* Smaller font size for mobile */
    }

    #servicios h1 {
        font-size: 1.8em; /* Adjust font size for mobile */
    }

    #servicios article div {
        width: 100%; /* Full width for mobile */
        height: 150px; /* Fixed height for mobile */
    }

    #servicios article div p {
        font-size: 0.8em; /* Smaller font size for mobile */
    }
}

@media (min-width: 800px) {
    #home h1 {
        margin-left: 50%; /* Move the h1 to the right by one-third of the screen */
        margin-top: 23%;
    }
    #contacto {
        display: flex; /* Use Flexbox to align items horizontally */
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start; /* Align everything to the left */
        padding-left: 10%; /* Add some left padding for better spacing */
        text-align: left; /* Align text to the left */
    }

    #contacto article {
        margin: 0 0 40px 0; /* Remove auto margin to align left */
        max-width: 100%; /* Allow articles to take full width */
    }

    #contacto .redes {
        justify-content: flex-start; /* Align social icons to the left */
    }

    #titulor {
        text-align: left; /* Align the "Redes" title to the left */
    }
    #reviewForm {
        max-width: 600px; /* Set a comfortable width for larger screens */
    }
}