
/* CONFIGURACIÓN GENERAL */
:root {
    --green: #19c463;
    --green-dark: #108b45;
    --black: #101410;
    --surface: #1c221e;
    --surface-light: #252d28;
    --white: #ffffff;
    --gray: #b8c0ba;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title > span {
    color: var(--green);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.section-title h2 {
    font-size: 36px;
    margin: 10px 0;
}

.section-title h2 strong {
    color: var(--green);
}

.section-title p {
    color: var(--gray);
}

/* ENCABEZADO */

.header {
    background: rgba(16, 20, 16, 0.97);
    border-bottom: 1px solid #29332c;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 200px;
    height: 70px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav a {
    color: var(--gray);
    font-size: 14px;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--green);
}

.nav .nav-contact {
    background: var(--green);
    color: var(--black);
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    color: var(--green);
    background: none;
    border: none;
    font-size: 27px;
    cursor: pointer;
}

/* PORTADA */

.hero {
    min-height: 570px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, #101410 5%, rgba(16,20,16,.88) 55%, rgba(16,20,16,.35)),
        url("../img/taller/portada.jpg") center/cover no-repeat;
    padding: 80px 8%;
}

.hero-content {
    max-width: 680px;
}

.tag {
    color: var(--green);
    border: 1px solid var(--green);
    display: inline-block;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 65px);
    line-height: 1.1;
    margin: 24px 0;
    font-weight: 900;
}

.hero h1 span {
    color: var(--green);
}

.hero-content > p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
}

.btn-green {
    background: var(--green);
    color: var(--black);
}

.btn-green:hover {
    background: #26e779;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--green);
    color: var(--green);
}

.btn-outline:hover {
    background: var(--green);
    color: var(--black);
}

/* NOSOTROS */

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 35px;
    align-items: center;
}

.about-content h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.about-card {
    padding: 35px;
    background: var(--surface);
    border: 1px solid #344138;
    border-radius: 12px;
}

.about-icon {
    font-size: 40px;
}


/* TARJETAS DE SERVICIOS */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: linear-gradient(145deg, #202820, #151b17);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #344138;
    border-bottom: 3px solid var(--green);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--green);
}

.service-icon {
    font-size: 42px;
    margin-bottom: 18px;
}

.service-card h3 {
    color: var(--white);
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 22px;
    flex-grow: 1;
}

.service-link {
    color: var(--green);
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
}

.service-link:hover {
    color: #ffffff;
}

/* ADAPTACIÓN A CELULARES */

@media (max-width: 850px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* GALERÍA */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-placeholder {
    background: var(--surface);
    min-height: 220px;
    border-radius: 10px;
    border: 1px dashed #526456;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    text-align: center;
    padding: 20px;
}

.gallery-placeholder span {
    font-size: 45px;
}

/* UBICACIÓN */

.location {
    background: #151b17;
}

.location-card {
    max-width: 650px;
    margin: auto;
    background: var(--surface);
    border: 1px solid #344138;
    border-radius: 12px;
    text-align: center;
    padding: 40px 25px;
}

.location-icon {
    font-size: 42px;
}

.location-card h3 {
    margin: 12px 0;
    font-size: 25px;
}

.location-card p {
    color: var(--gray);
    margin: 8px 0;
}

.location-card .btn {
    margin-top: 20px;
}

/* CONTACTO */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--surface);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid #344138;
}

.contact-card > span {
    font-size: 35px;
}

.contact-card h3 {
    color: var(--green);
    margin: 10px 0;
}

.contact-card p {
    color: var(--gray);
    font-size: 14px;
}

.whatsapp {
    display: table;
    margin: 35px auto 0;
}

/* PIE DE PÁGINA */

.footer {
    text-align: center;
    background: #080b09;
    padding: 45px 0;
    border-top: 2px solid var(--green);
}

.footer h2 {
    font-size: 25px;
}

.footer p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 7px;
}

.copyright {
    margin-top: 25px !important;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 25px;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .nav.active {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 550px) {
    .hero {
        min-height: 500px;
        padding: 65px 5%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 65px 0;
    }

    .section-title h2 {
        font-size: 29px;
    }

    .services-grid,
    .gallery-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 19px;
    }
}


/* UBICACIÓN Y MAPA */

.location-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 25px;
    align-items: stretch;
}

.location-card {
    background: var(--surface);
    border: 1px solid #344138;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-icon {
    font-size: 42px;
}

.location-card h3 {
    color: var(--green);
    margin: 15px 0;
    font-size: 24px;
}

.location-card p {
    color: var(--gray);
    margin: 8px 0;
}

.location-card .btn {
    margin: 20px auto 0;
}

.map-container {
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--green);
    min-height: 350px;
}

.map-container iframe {
    display: block;
}

@media (max-width: 750px) {
    .location-layout {
        grid-template-columns: 1fr;
    }
}


/* UBICACIÓN POWER MOTO JC */

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch;
}

/* FOTOGRAFÍA */

.location-photo {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid #344138;
    background: var(--surface);
}

.location-photo img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    display: block;
}

.photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );
}

.photo-label span {
    font-size: 30px;
}

.photo-label h3 {
    color: var(--green);
    font-size: 20px;
}

.photo-label p {
    color: white;
    font-size: 14px;
}

/* INFORMACIÓN Y MAPA */

.location-information {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.location-card {
    background: var(--surface);
    border: 1px solid #344138;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.location-icon {
    font-size: 32px;
}

.location-card h3 {
    color: var(--green);
    margin: 10px 0;
}

.location-card p {
    color: var(--gray);
    margin: 8px 0;
}

.location-card .btn {
    margin-top: 15px;
}

.map-container {
    flex: 1;
    min-height: 250px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--green);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* RESPONSIVE */

@media (max-width: 750px) {

    .location-layout {
        grid-template-columns: 1fr;
    }

    .location-photo,
    .location-photo img {
        min-height: 300px;
    }

    .map-container {
        min-height: 300px;
    }
}


/* GALERÍA PÚBLICA - POWER MOTO JC */

.galeria-publica {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(250px, 1fr)
    );
    gap: 22px;
    margin-top: 30px;
}

.galeria-publica-card {
    background: #1c221e;
    border: 1px solid #344138;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.galeria-publica-card:hover {
    transform: translateY(-5px);
    border-color: #19c463;
}

.galeria-publica-card img,
.galeria-publica-card video {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (max-width: 600px) {
    .galeria-publica {
        grid-template-columns: 1fr;
    }

    .galeria-publica-card img,
    .galeria-publica-card video {
        height: 230px;
    }
}


/* TÍTULOS DE LA GALERÍA PÚBLICA */

.galeria-publica-card h3 {
    color: #19c463;
    font-size: 19px;
    margin: 15px 18px 8px;
    overflow-wrap: anywhere;
}

.galeria-publica-card p {
    color: #b8c0ba;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 18px 18px;
}

/* BOTÓN FLOTANTE DE WHATSAPP */

.whatsapp-flotante {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 20px;
    background: #18bd60;
    color: white;

    border-radius: 50px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease,
     background 0.2s ease;
}

.whatsapp-flotante:hover {
    background: #109849;
    transform: translateY(-4px);
}

@media (max-width: 600px) {
    .whatsapp-flotante {
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
        font-size: 13px;
    }
}


/* CORREO DEL TALLER */

.contact-email {
    display: inline-block;
    color: #19c463;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    overflow-wrap: anywhere;
    margin: 8px 0 12px;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-email:focus-visible {
    outline: 2px solid #19c463;
    outline-offset: 4px;
}


/* ======================================
   VISOR DE FOTOGRAFÍAS - POWER MOTO JC
====================================== */

#galeriaPublica img {
    cursor: zoom-in;
}

#visorGaleria {
    position: fixed;
    margin: auto;
    width: min(94vw, 1200px);
    max-width: 1200px;
    max-height: 94vh;
    max-height: 94dvh;

    padding: 42px 14px 14px;
    border: 1px solid #19c463;
    border-radius: 14px;

    background: #080d09;
    color: white;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.6);
}

#visorGaleria::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

#imagenAmpliada {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(94dvh - 65px);

    object-fit: contain;
    border-radius: 8px;
}

#cerrarVisor {
    position: absolute;
    top: 5px;
    right: 10px;

    width: 36px;
    height: 36px;

    background: #19c463;
    color: #08120b;

    border: none;
    border-radius: 50%;

    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#cerrarVisor:hover {
    background: white;
}

#galeriaPublica img:focus-visible,
#cerrarVisor:focus-visible {
    outline: 3px solid #19c463;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    #visorGaleria {
        width: 96vw;
        padding: 44px 8px 8px;
    }

    #imagenAmpliada {
        max-height: calc(94dvh - 60px);
    }
}


/* FOTO AMPLIABLE DE LA UBICACIÓN */

.location-photo img {
    cursor: zoom-in;
}

.location-photo img:focus-visible {
    outline: 3px solid #19c463;
    outline-offset: -3px;
}



