/* ============================================
   GPPROFER, S.L - MAIN STYLESHEET
   Guipozcoa Profesional Herrería
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a2a4f;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: #ff6b35;
    transition: all 0.3s ease;
}

a:hover {
    color: #1a2a4f;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #ff6b35;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #1a2a4f;
    color: #fff;
    transform: translateY(-2px);
}

.btn-small {
    display: inline-block;
    background-color: #ff6b35;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #1a2a4f;
    color: #fff;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.site-footer {
    background-color: #0f1a2e;
    color: #ccc;
    margin-top: 0;
    padding-top: 0;
}

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #aaa;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-social a:hover img {
    opacity: 1;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff6b35;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links li a:hover {
    color: #ff6b35;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #aaa;
}

.footer-contact li img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.footer-bottom {
    padding: 20px 0;
    background-color: #0a1220;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 13px;
    color: #888;
}

.footer-legal-links {
    display: inline-block;
    margin-left: 10px;
}

.footer-legal-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ff6b35;
}

.separator {
    margin: 0 8px;
    color: #555;
}

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.whatsapp-float a img {
    width: 35px;
    height: 35px;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

#scroll-top-link {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #1a2a4f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    font-size: 20px;
}

#scroll-top-link.show {
    opacity: 1;
    visibility: visible;
}

#scroll-top-link:hover {
    background-color: #ff6b35;
    transform: translateY(-3px);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a2a4f;
    color: #fff;
    padding: 15px 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent p {
    margin: 0;
    font-size: 14px;
}

.cookie-consent .cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-consent .btn-cookie-accept {
    background-color: #ff6b35;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-consent .btn-cookie-accept:hover {
    background-color: #e55a2b;
}

.cookie-consent .btn-cookie-settings {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-consent .btn-cookie-settings:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        order: 2;
    }
    
    .footer-legal-links {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .payment-methods {
        order: 1;
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float a img {
        width: 28px;
        height: 28px;
    }
    
    #scroll-top-link {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .cookie-consent .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    
    .footer-legal-links {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .separator {
        margin: 0 5px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.pt-0 { padding-top: 0; }
.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pb-0 { padding-bottom: 0; }
.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }

.hidden { display: none; }
.visible { display: block; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@media print {
    .top-bar,
    .main-nav,
    .lang-switcher,
    .whatsapp-float,
    #scroll-top-link,
    .cookie-consent,
    .footer-bottom {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
}