/* ====== Estilos adicionales para la nueva estructura ====== */

/* ====== Botones ====== */
.btn-gold {
    background-color: #ffc107;
    color: #151515;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    background-color: #ffde9e;
    color: #151515;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-catalog {
    background-color: #ffc107;
    color: #151515;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.btn-catalog:hover {
    background-color: #ffde9e;
    color: #151515;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ====== Header mejorado ====== */
#header {
    background: rgba(21, 21, 21, 0.95);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

#header.header-scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#header .logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

#header .logo-text {
    color: #ffc107;
}

#header .navbar {
    padding: 0;
}

#header .navbar .nav {
    gap: 35px;
}

#header .navbar .nav-link {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
}

#header .navbar .nav-link:hover {
    color: #ffc107 !important;
}

#header .navbar .nav-link.active {
    color: #ffc107 !important;
}

/* ====== Hero Section ====== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../CerradurasPHP/images/main/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: "Raleway", sans-serif;
}

.hero-title span {
    color: #ffc107;
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* ====== Features Top Section ====== */
.features-top {
    background: rgba(21, 21, 21, 0.8);
    padding: 60px 0;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-family: "Raleway", sans-serif;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

/* ====== Marcas Section ====== */
.marcas {
    padding: 60px 0;
    background: #f5f5f5;
}

.section-header {
    font-size: 28px;
    font-weight: 700;
    color: #151515;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Raleway", sans-serif;
}

.marcas-slider {
    padding: 20px 0;
}

.marcas-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.marcas-slider .swiper-slide img {
    opacity: 0.6;
    transition: all 0.3s ease;
    max-height: 80px;
    height: auto;
    filter: grayscale(100%);
}

.marcas-slider .swiper-slide:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* ====== Catálogos Destacados Section ====== */
.catalogos-destacados {
    padding: 60px 0;
    background: #fff;
}

.catalog-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.catalog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.catalog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f5f5f5;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.catalog-item:hover .catalog-image img {
    transform: scale(1.1);
}

.catalog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.catalog-item:hover .catalog-overlay {
    opacity: 1;
}

.catalog-overlay i {
    font-size: 48px;
    color: #151515;
}

.catalog-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #151515;
    padding: 20px 15px 10px;
    margin: 0;
    font-family: "Raleway", sans-serif;
}

.catalog-item p {
    font-size: 14px;
    color: #888;
    padding: 0 15px 15px;
    margin: 0;
}

.catalog-item .btn-catalog {
    margin: 0 15px 15px 15px;
}

/* ====== Productos Diferencia Section ====== */
.productos-diferencia {
    padding: 60px 0;
    background: rgba(21, 21, 21, 0.95);
}

.diferencia-slider {
    padding: 40px 20px;
}

.diferencia-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.diferencia-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.diferencia-item:hover .diferencia-img {
    transform: scale(1.1);
}

.diferencia-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    padding: 30px 20px 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.diferencia-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: "Raleway", sans-serif;
    color: #ffc107;
}

.diferencia-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.diferencia-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.diferencia-slider .swiper-pagination-bullet-active {
    background: #ffc107;
}

/* ====== Servicios Section ====== */
.servicios {
    padding: 60px 0;
    background: #f5f5f5;
}

.servicio-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
    text-align: center;
}

.servicio-box:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.servicio-icon {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 15px;
}

.servicio-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: #151515;
    margin-bottom: 10px;
    font-family: "Raleway", sans-serif;
}

.servicio-box p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ====== Nosotros Section ====== */
.nosotros {
    padding: 60px 0;
    background: #fff;
}

.nosotros .content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #151515;
    margin-bottom: 20px;
    font-family: "Raleway", sans-serif;
}

.nosotros .content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 15px;
    color: #666;
}

.features-list i {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 20px;
    color: #ffc107;
}

/* ====== Contact Section ====== */
.contact {
    padding: 60px 0;
    background: #f5f5f5;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    gap: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 28px;
    color: #ffc107;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #151515;
    margin: 0 0 8px 0;
    font-family: "Raleway", sans-serif;
}

.info-item p {
    font-size: 14px;
    color: #888;
    margin: 5px 0;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.contact-form .form-label {
    font-weight: 600;
    color: #151515;
    margin-bottom: 8px;
}

.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.contact-form textarea.form-control {
    resize: vertical;
    font-family: "Open Sans", sans-serif;
}

/* ====== Footer ====== */
#footer {
    background: #151515;
    color: #fff;
    padding: 0;
}

#footer .footer-top {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
    padding: 40px 0 30px;
}

.footer-section {
    margin-bottom: 30px;
}

#footer h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 20px;
    font-family: "Raleway", sans-serif;
}

#footer .footer-info h4 {
    color: #fff;
    font-size: 20px;
}

#footer .footer-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffc107;
    padding-left: 5px;
}

#footer .social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 8px;
    text-decoration: none;
}

#footer .social-links a:hover {
    background: #ffc107;
    color: #151515;
}

.footer-bottom {
    background: #151515;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
}

#footer .copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

#footer .credits {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ====== WhatsApp Button ====== */
.whatsapp-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-button a:hover {
    background: #20ba5b;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ====== Mobile Menu ====== */
@media (max-width: 991px) {
    #header .navbar {
        display: block;
    }

    #header .navbar .nav {
        gap: 0;
    }

    .mobile-nav-toggle {
        display: block;
        color: #ffc107;
        font-size: 28px;
        cursor: pointer;
    }

    .hero-title {
        font-size: 32px;
    }

    .catalog-item {
        margin-bottom: 20px;
    }

    .section-header {
        font-size: 24px;
    }
}

/* ====== Animaciones ====== */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* ====== Utilidades ====== */
.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.g-4 {
    gap: 1.5rem;
}

.g-5 {
    gap: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.align-items-center {
    align-items: center;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}