* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #150552;
    --secondary-color: #c9c66a;
    --tertiary-color: #ffffff;
    --font-family: Georgia, 'Times New Roman', Times, serif;
}

section {
    background-color: #f0f0f0;
    font-family: var(--font-family);
    height: 100vh;
}


/* -----------navbar------------ */
.navbar {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    height: 35vh;
}

.logo-img {
    max-width: 200px;
}

.logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 1rem;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #ffffff;
}
.enlaces-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.enlaces-box ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.enlaces-box a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
}

.enlaces-box a:hover {
    text-decoration: underline;
}

.nav-btn a {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    font-weight: bold;
    padding: 1rem 2rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 4rem;
    right: 4rem;
}

.nav-btn a:hover {
    background-color: #999751;
    color: var(--secondary-color);
}

h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1rem;
} 

/* -----------eslogan------------ */
#eslogan {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    height: 30vh;
}

#eslogan h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#eslogan p {
    font-size: 2.2rem;
}
/* -----------home------------ */
#home {
    text-align: center;
    padding: 2rem;
    background-image: url('/src/imagenes/Home-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--primary-color);
    height: 80vh;
}

/* -----------catalog------------ */
.catalog {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    height: 80vh;
}
.catalog .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.catalog h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.service {
    transition: ease 0.3s;
}
.service:hover {
    transform: scale(1.05);
    cursor: pointer;
}
.service img {
    max-width: 300px;
}

/* ---------- Gallery ---------- */
#gallery {
    text-align: center;
    padding: 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    height: auto;
}
#gallery h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
#gallery p {
    font-size: 1.5rem;
    line-height: 1.5;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 2rem 0;
}

.carousel-container {
    position: relative;
    width: 700px;
    height: 700px;
    max-width: 90vw;
    max-height: 90vw;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    background: #fff;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-btn {
    position: static;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    outline: none;
}
.carousel-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Indicadores abajo del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsive cuadrado en móvil */
@media (max-width: 768px) {
    .carousel-container {
        width: 90vw;
        height: 90vw;
        min-width: 200px;
        min-height: 200px;
    }
    .carousel-btn {
        padding: 12px;
        font-size: 1.5rem;
    }
    .carousel-controls {
        gap: 10px;
    }
}

/* Responsive design for mobile and tablet */
@media (max-width: 768px) {
    /* Mobile styles */
    .navbar {
        height: auto;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        position: static;
        flex-direction: row;
        align-items: center;
    }

    .logo-img {
        max-width: 120px;
    }

    .social-icons {
        display: none;
    }

    .enlaces-box {
        display: none;
    }

    .nav-btn {
        position: static;
    }

    .nav-btn a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    /* Asegurar que mobile-menu-links esté visible en móvil */
    .mobile-menu-links {
        display: block;
    }

    #eslogan {
        height: auto;
        padding: 3rem 1rem;
    }

    #eslogan h2 {
        font-size: 2.5rem;
    }

    #eslogan p {
        font-size: 1.5rem;
    }
    #home {
        height: 40vh;
    }
    .catalog {
        height: auto;
        padding: 2rem 1rem;
    }

    .catalog h2 {
        font-size: 2rem;
    }

    .catalog .container {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .service img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        }

    .service h3 {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }

    .service p {
        font-size: 1.1rem;
    }

    #gallery {
        height: auto;
        padding: 2rem 1rem;
    }

    #gallery h2 {
        font-size: 2rem;
    }

    #gallery p {
        font-size: 1.2rem;
    }

    .carousel-container {
        margin: 1rem;
        height: 250px;
    }

    .carousel-slide img {
        height: 250px;
    }

    #contact {
        height: auto;
        padding: 2rem 1rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

    #contact p {
        font-size: 1.2rem;
    }
    #contact .container {
        flex-direction: column;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    #contact .container form {
        display:flex ;
        width: 90%;
        max-width: 300px;
        height: auto;
        padding: 2rem;
    }
    #contact .container form label {
        font-weight: bold;
        margin-bottom: 0.5rem;
        padding: 0;
        font-size: 14px;
    }
    #contact .container form input, 
    #contact .container form textarea {
        width: 100%;
        max-width: 200px;
    }
    label {
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet styles */
    .navbar {
        height: 25vh;
    }

    .logo-img {
        max-width: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    .catalog .container {
        grid-template-columns: repeat(2, 1fr);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .service {
        border-radius: 0;
    }
    .service img {
        max-width: 250px;
        border-radius: 0;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-slide img {
        height: 350px;
    }

    #contact .container form {
        width: 500px;
    }
}

@media (max-width: 768px) {
    /* Extra small mobile styles */
    .logo-img {
        max-width: 100px;
    }

    #eslogan h2 {
        font-size: 2rem;
    }

    #eslogan p {
        font-size: 1.2rem;
    }

    .catalog h2,
    #gallery h2,
    #contact h2 {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-slide img {
        height: 200px;
    }
}



/* ---------- contact ---------- */

#contact {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    height: 90vh;
}
#contact h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
#contact p {
    font-size: 1.5rem;
    line-height: 1.5;
}

#contact .container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact .container form {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
    width: 600px;
    height: 600px;
    max-width: 1500px;
}
#contact .container form label {
    font-weight: bold;
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
}
#contact .container form input, #contact .container form textarea {
    padding: 0.5rem;
    display: flex;
    width: 400px;
    border: 2px solid var(--primary-color);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--primary-color);
}
#contact .container form button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-family);
    font-size: 1rem;
    cursor: pointer;
    transition:0.3s ease;
}
#contact .container form button:hover {
    background-color: darken(#ffffff, 10%);
}

/* ---------- footer ---------- */

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-contact {
    text-align: left;
    flex: 1;
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-contact p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.footer-links {
    text-align: right;
    flex: 1;
}

.footer-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin: 0.5rem 0;
}

.footer-links ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-color);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-contact,
    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        padding: 0;
    }
}


@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--secondary-color);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1000;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        z-index: 999;
        padding: 2rem;
    }

    .mobile-menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu ul {
        list-style: none;
        text-align: center;
    }

    .mobile-menu ul li {
        margin: 1rem 0;
    }

    .mobile-menu ul li a {
        color: var(--secondary-color);
        font-size: 1.5rem;
        text-decoration: none;
    }

    .mobile-menu-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: var(--secondary-color);
        font-size: 2rem;
        cursor: pointer;
    }
}

/* Responsive design for mobile and tablet */
@media (max-width: 768px) {
    /* Mobile styles */
    .navbar {
        height: auto;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        position: static;
        flex-direction: row;
        align-items: center;
    }

    .logo-img {
        min-width: 220px;
    }

    .social-icons {
        display: none;
    }

    .enlaces-box {
        display: none;
    }

    .nav-btn {
        position: static;
    }

    .nav-btn a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        display: none;
    }

    h1 {
        font-size: 1.5rem;
    }

    #eslogan {
        height: auto;
        padding: 3rem 1rem;
    }

    #eslogan h2 {
        font-size: 2.5rem;
    }

    #eslogan p {
        font-size: 1.5rem;
    }

    .catalog {
        height: auto;
        padding: 2rem 1rem;
    }

    .catalog h2 {
        font-size: 2rem;
    }

    .catalog .container {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .service img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        }

    .service h3 {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }

    .service p {
        font-size: 1.1rem;
    }

    #gallery {
        height: auto;
        padding: 2rem 1rem;
    }

    #gallery h2 {
        font-size: 2rem;
    }

    #gallery p {
        font-size: 1.2rem;
    }

    .carousel-container {
        margin: 1rem;
        height: 250px;
    }

    .carousel-slide img {
        height: 250px;
    }

    #contact {
        height: auto;
        padding: 2rem 1rem;
    }

    #contact h2 {
        font-size: 2rem;
    }

    #contact p {
        font-size: 1.2rem;
    }
    #contact .container {
        flex-direction: column;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    #contact .container form {
        display:flex ;
        width: 90%;
        max-width: 300px;
        height: auto;
        padding: 2rem;
    }
    #contact .container form label {
        font-weight: bold;
        margin-bottom: 0.5rem;
        padding: 0;
        font-size: 14px;
    }
    #contact .container form input, 
    #contact .container form textarea {
        width: 100%;
        max-width: 200px;
    }
    label {
        font-weight: bold;
        margin-bottom: 0.5rem;
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet styles */
    .navbar {
        height: 25vh;
    }

    .logo-img {
        max-width: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    .catalog .container {
        grid-template-columns: repeat(2, 1fr);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .service {
        border-radius: 0;
    }
    .service img {
        max-width: 250px;
        border-radius: 0;
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-slide img {
        height: 350px;
    }

    #contact .container form {
        width: 500px;
    }
}

@media (max-width: 768px) {
    /* Extra small mobile styles */
    .logo-img {
        min-width: 220px;
    }

    #eslogan h2 {
        font-size: 2rem;
    }

    #eslogan p {
        font-size: 1.2rem;
    }

    .catalog h2,
    #gallery h2,
    #contact h2 {
        font-size: 1.8rem;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-slide img {
        height: 200px;
    }
}

/* Hamburger menu styles */
.mobile-menu-toggle{
    position: absolute;
    top: -4rem;
}
.mobile-menu-toggle ul li{
    position: absolute;
    top: -100px;
}