/* ============================================
   VARIABLES Y ESTILOS GLOBALES
   ============================================ */

:root {
    --primary-color: #1a1a1a;      /* Gris oscuro principal */
    --secondary-color: #2d2d2d;    /* Gris oscuro secundario */
    --accent-color: #d4af37;       /* Naranja/Rojo acento */
    --accent-light: #d4af37;      /* Naranja claro */
    --text-light: #e0e0e0;         /* Texto claro */
    --text-dark: #ffffff;          /* Texto blanco */
    --border-color: #404040;       /* Color de bordes */
    --success-color: #4caf50;      /* Color de éxito */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 1;
}

.logo h1 {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo .tagline {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23404040" stroke-width="0.5"/></pattern></defs><rect width="1200" height="600" fill="%231a1a1a"/><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-dark);
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   SERVICIOS
   ============================================ */

.servicios {
    background-color: var(--secondary-color);
}

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

.servicio-card {
    background-color: var(--primary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.servicio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.servicio-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.servicio-card h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.servicio-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   GALERÍA
   ============================================ */

.galeria {
    background-color: var(--primary-color);
}

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

.galeria-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.galeria-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.before-after {
    position: relative;
    width: 25%;
    height: 75px;
    overflow: hidden;
}

.before, .after {
    position: absolute;
    width: 25%;
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before {
    left: 0;
}

.after {
    right: 0;
}

.before img, .after img {
    width: 25%;
    height: 25%;
    object-fit: cover;
}

.label {
    position: absolute;
    top: 10px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.before .label {
    left: 10px;
}

.after .label {
    right: 10px;
}

.trabajo-titulo {
    padding: 1.5rem;
    text-align: center;
    color: var(--accent-color);
    font-weight: bold;
}

/* ============================================
   INFORMACIÓN DE EMPRESA
   ============================================ */

.info-empresa {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.info-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.info-box p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

/* ============================================
   MAPA
   ============================================ */

.mapa {
    background-color: var(--secondary-color);
    padding: 3rem 0;
}

.mapa iframe {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */

.contacto {
    background-color: var(--primary-color);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contacto-form {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.contacto-info {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.contacto-info h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contacto-metodos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-metodo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--primary-color);
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contacto-metodo:hover {
    transform: translateX(10px);
    background-color: rgba(255, 107, 53, 0.1);
}

.contacto-metodo i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contacto-metodo.email:hover {
    color: var(--accent-color);
}

.contacto-metodo.whatsapp:hover {
    color: #25d366;
}

.contacto-metodo span {
    flex: 1;
}

.horario-info {
    display: flex;
    gap: 1rem;
}

.horario-info i {
    font-size: 1.3rem;
}

.horario-info div {
    flex: 1;
}

.horario-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
    color: var(--text-light);
}

.footer p {
    margin: 0.5rem 0;
}
/* ============================================
   FONDOS PARA TARJETAS DE SERVICIOS
   ============================================ */


.servicio-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 260px;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Capa oscura encima de la foto */
.servicio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}


/* Texto encima de la imagen */
.servicio-card i,
.servicio-card h3,
.servicio-card p {
    position: relative;
    z-index: 2;
}


/* Imágenes */
.chapa {
    background-image: url('images/chapa.jpg');
}

.pintura {
    background-image: url('images/pintura.jpg');
}

.pulido {
    background-image: url('images/pulido.jpg');
}

.superficies {
    background-image: url('images/superficies.jpg');
}

.color {
    background-image: url('images/color.jpg');
}

.mantenimiento {
    background-image: url('images/mantenimiento.jpg');
}


/* efecto al pasar el ratón */
.servicio-card:hover {
    transform: translateY(-10px);
    background-position:center;
}

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

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }

    .servicios-grid,
    .galeria-grid {
        grid-template-columns: 1fr;
    }

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

    .hero::before,
    .hero::after {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 600px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--secondary-color);
        padding: 1rem;
        gap: 0;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.5rem 0;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .servicio-card,
    .contacto-form,
    .contacto-info {
        padding: 1.5rem;
    }

    section {
        padding: 2rem 0;
    }
}
   .logo-img{
       height:80px;
       width:auto;
       display:block;
}

/* ============================================
   HERO - FONDO FOTO
   ============================================ */

.hero {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('images/fondo-hero.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ============================================
   ANTES / DESPUÉS
   ============================================ */

.antes-despues-item {
    margin-bottom: 3rem;
}

.antes-despues-fotos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-radius: 10px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.foto-lado {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.foto-lado img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.foto-lado .label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-weight: bold;
    color: white;
    background-color: rgba(0,0,0,0.7);
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* ============================================
   VÍDEOS MP4
   ============================================ */

.subtitulo-galeria {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 2.5rem 0 1.5rem;
}

.proceso-trabajo {
    background-color: var(--secondary-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.video-item {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.video-item video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ============================================
   INSTAGRAM AL FINAL
   ============================================ */

.video-instagram-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

.video-instagram-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

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

@media (max-width: 768px) {
    .foto-lado {
        height: 120px;
    }

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

    .video-item video {
        height: 200px;
    }
}
