/* ============================================
   LARS - Web Solutions
   Colores principales:
   - Negro: #1a1a1a
   - Gris oscuro: #333333
   - Gris medio: #666666
   - Blanco: #ffffff
============================================ */

/* === Variables === */
:root {
    --color-primary: #1a1a1a;
    --color-primary-light: #333333;
    --color-primary-dark: #000000;
    --color-secondary: #666666;
    --color-dark: #1a1a1a;
    --color-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text: #333333;
    --font-family: 'Inter', sans-serif;
}

/* === Reset y Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.wrapper {
    min-height: 100vh;
    overflow-x: hidden;
}

.wrapper img {
    max-width: 100% !important;
    height: auto !important;
}

/* === Header/Navbar === */
.header-herreria {
    background-color: var(--color-dark) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-herreria .navbar {
    padding: 0.8rem 0;
}

.logo-herreria {
    max-height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-herreria:hover {
    transform: scale(1.05);
}

.header-herreria .nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.header-herreria .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-herreria .nav-link:hover::after,
.header-herreria .nav-link.active::after {
    width: 80%;
}

.header-herreria .nav-link:hover,
.header-herreria .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.btn-cotizacion {
    background-color: var(--color-white);
    color: var(--color-primary) !important;
    border: 2px solid var(--color-white);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cotizacion:hover {
    background-color: transparent;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* === Hero Section === */
.hero-section {
    position: relative;
    height: 600px;
    background-image: url('../images/herreria img/portones.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section-small {
    position: relative;
    height: 350px;
    background-image: url('../images/herreria img/fabricacion_cabina.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.75);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--color-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-hero-primary {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--color-white) !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background-color: transparent !important;
    color: var(--color-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background-color: transparent !important;
    color: var(--color-white) !important;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--color-white) !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === Section Titles === */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.1rem;
    color: var(--color-secondary);
    line-height: 1.8;
}

/* === Bienvenida Section === */
.bienvenida-section {
    background-color: var(--color-white);
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 0;
}

/* === Servicios Section === */
.servicios-section {
    background-color: var(--color-light);
}

.servicio-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.servicio-img {
    height: 250px;
    overflow: hidden;
}

.servicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-img img {
    transform: scale(1.1);
}

.servicio-content {
    padding: 1.5rem;
}

.servicio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.servicio-description {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, #333333 100%);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta-primary {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--color-primary) !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-primary:hover {
    background-color: var(--color-primary-light) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary-light) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    background-color: transparent !important;
    color: var(--color-white) !important;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--color-white) !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* === Footer === */
.footer-herreria {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-top: 3rem;
}

.logo-footer {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-5px);
}

/* === Nosotros Page === */
.nosotros-content {
    background-color: var(--color-white);
}

.valor-card {
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.valor-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.valor-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.valor-text {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

.experiencia-section {
    background-color: var(--color-light);
    border-radius: 10px;
}

.experiencia-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.experiencia-label {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 500;
}

/* === Galería Page === */
.galeria-section {
    background-color: var(--color-white);
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    height: 300px;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover .galeria-img {
    transform: scale(1.1);
}

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay i {
    font-size: 3rem;
    color: var(--color-white);
}

.categorias-section {
    background-color: var(--color-light);
}

.categoria-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
}

.categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.categoria-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.categoria-card p {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.categoria-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

/* === Contacto Page === */
.contacto-section {
    background-color: var(--color-white);
}

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

.contacto-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contacto-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contacto-link:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.social-icons-contact {
    display: flex;
    gap: 1rem;
}

.social-link-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link-contact:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-5px);
}

.contacto-form-card {
    background-color: var(--color-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.form-control-lg {
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}

.btn-contacto-submit {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-contacto-submit:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--color-white);
}

.por-que-elegirnos {
    background-color: var(--color-light);
}

.beneficio-card {
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.beneficio-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 400px;
    }

    .hero-section-small {
        height: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        display: block;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .experiencia-number {
        font-size: 2.5rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        display: block;
        margin: 0.5rem auto !important;
        max-width: 280px;
    }

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

    .cta-text {
        font-size: 1rem;
    }
}

/* === Utility Classes === */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.rounded {
    border-radius: 10px !important;
}

/* === Bootstrap Overrides === */
.navbar-toggler {
    border-color: var(--color-white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === Additional Styles for Better Visibility === */
.header-herreria .btn-cotizacion i {
    color: #fff !important;
}

.header-herreria .btn-cotizacion:hover i {
    color: var(--color-white) !important;
}

.header-herreria .btn-cotizacion p {
    color: #fff !important;
}

.header-herreria .btn-cotizacion:hover p {
    color: var(--color-white) !important;
}