/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: transparent !important;
    /*background-color: rgba(0, 0, 0, 0.7);*/
    backdrop-filter: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: transparent !important;
    backdrop-filter: none;
}

.logo {
    margin-right: auto;
    z-index: 1002;
}

.logo a {
    display: block;
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.8;
}

/* Menú hamburguesa (botón) */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 1rem;
    color: #ffffff;
    z-index: 1001;
    transition: all 0.2s;
    background-color: rgba(0, 0, 0, 0.4); /* fondo semitransparente oscuro */
    border-radius: 8px;
    width: 44px;
    height: 44px;
}

.menu-toggle:hover {
    color: #a67c00;
}

.menu-toggle.desktop-visible {
    display: block !important;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background-color: #000000;
    color: #ffffff;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.menu-toggle.desktop-visible:hover {
    background-color: #a67c00;
}

/* Menú oculto por defecto */
.main-nav {
    position: fixed;
    top: 70px;
    right: -100% !important;
    left: auto !important;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    transition: left 0.2s ease;
    z-index: 999;
    padding: 2rem 1rem;
    display: block;
}

.main-nav.active {
    right: 0 !important;
    left: auto !important;
}

.main-nav.desktop-hidden {
    display: none;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
    height: auto;
}

.main-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: #a67c00;
}

.menu-toggle.desktop-visible {
    display: block !important;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/fondo-web2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    padding: 3rem 1.5rem;
    margin-top: 0;
    color: #ffffff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    width: 60vw;
    max-width: 650px;
    min-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #000;
    color: #ffffff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========== SECCIONES ========== */
.section {
    padding: 1rem 0;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 1px;
}

.nosotros p {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 1rem;
    color: #2d2d2d;
}

/* Grid de proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #f5f3ef;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    padding-bottom: 1.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.project-card p {
    color: #555;
    padding: 0 1rem;
    text-align: left;
}

.project-card a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.project-card a:hover {
    text-decoration: underline;
}

/* ========== SERVICIOS CARDS ========== */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #f5f3ef;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.service-icon img {
    width: 45px;
    height: auto;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4a4a4a;
}

/* ========== TRABAJOS REALIZADOS - MURAL ========== */
.trabajos {
    background-color: #faf9f6;
    padding: 2rem;
}

.mural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.mural-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.7;
}

.mural-item:hover {
    opacity: 1;
    transform: scale(1.02);
}

.mural-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.mural-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mural-item:hover .mural-caption {
    opacity: 1;
}

/* ========== MODAL CARRUSEL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 75%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#carousel-track {
    position: relative;
    width: 100%;
    text-align: center;
}

#carousel-track img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
    z-index: 10;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255,255,255,0.4);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

/* ========== CONTACTO ========== */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    margin-top: 5rem;
    align-items: stretch;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.contact-info {
    flex: 1;
    background: #ffffff;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    height: auto;
}

.contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid #eeeeee;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    transform: translateX(5px);
    border-color: #a67c00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-icon {
    font-size: 1.5rem;
}

.info-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.info-item a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    word-break: break-word;
}

.info-item a:hover {
    color: #a67c00;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #a67c00;
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: #f8f8f8;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.site-footer a {
    color: #555;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .site-header {
        padding: 0.8rem 1.2rem;
    }

    .logo-img {
        height: 35px;
    }

    .menu-toggle {
        color: #ffffff;
        background-color: rgba(0,0,0,0.4);
        border-radius: 8px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        right: -100%;
        width: 75%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-logo {
        /*
        width: 60vw;
        min-width: 250px;
        */
        width: 85%;
        max-width: 300px;
        min-width: 200px;
        height: auto;
        margin: 0 auto; /* centrado */
        display: block;     
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon img {
        width: 38px;
    }

    .mural-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .mural-item {
        opacity: 1;
    }

    .mural-caption {
        opacity: 1;
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .modal-content {
        width: 90%;
    }

    .modal-caption {
        white-space: normal;
        font-size: 0.7rem;
        width: 90%;
        text-align: center;
        bottom: 10px;
    }

    .prev-btn, .next-btn {
        font-size: 1.2rem;
        padding: 0.3rem 0.8rem;
    }

    .close-modal {
        font-size: 1.5rem;
        top: 10px;
        right: 15px;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form {
      order: 2;
    }

    .contact-info {
      order: 1;
      padding: 1rem;
    }
    .info-item {
      padding: 0.5rem 0.5rem;
    }
    
    .info-icon-img {
        width: 20px;
        height: 20px;
    }
    
    .info-item a {
        font-size: 0.85rem;
    }

}

@media (max-width: 480px) {
    .mural-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-logo {
        width: 60vw;
        min-width: 220px;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
    }
}