/**
 * Theme Name: Proem Abogados y Asesores
 * Theme URI: https://proemabogadosyasesores.com
 * Author: Daniel Díaz
 * Author URI: https://elaboral.es
 * Description: Tema profesional para Proem Abogados y Asesores
 * Version: 1.0.0
 * License: GPL v2 or later
 * Text Domain: proem-abogados
 * Domain Path: /languages
 */

/* ========================================
   1. CSS Variables & Root
======================================== */
:root {
    /* Colores principales - Sobrios y profesionales */
    --color-primary: #541D36;      /* Borgoña - Color principal del logo */
    --color-primary-dark: #3A1325; /* Borgoña oscuro */
    --color-primary-light: #6B2444; /* Borgoña claro */
    
    /* Colores neutros */
    --color-dark: #1a1a1a;         /* Negro suave */
    --color-text: #333333;          /* Gris oscuro para texto */
    --color-text-light: #666666;    /* Gris medio para texto secundario */
    --color-gray: #999999;          /* Gris claro */
    --color-gray-light: #e5e5e5;   /* Gris muy claro para bordes */
    --color-background: #f8f8f8;    /* Gris de fondo */
    --color-white: #ffffff;         /* Blanco puro */
    
    /* Color de acento (dorado del logo, usado con moderación) */
    --color-accent: #B6AF68;       /* Dorado/Verde oliva - Solo para detalles muy específicos */
    
    /* Tipografía */
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Utilidades */
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --border-radius: 2px;
    --max-width: 1200px;
}

/* ========================================
   2. Reset & Base Styles
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    font-weight: 400;
}

/* ========================================
   3. Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

h1 { 
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 { 
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

strong, b {
    font-weight: 600;
}

/* ========================================
   4. Layout & Container
======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 80px 0;
}

/* ========================================
   5. Header & Navigation
======================================== */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.site-logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 400;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu .current-menu-item > a {
    color: var(--color-primary);
}

/* CTA Button in menu */
.menu-cta a {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.menu-cta a:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 24px;
    height: 20px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    position: absolute;
    transition: var(--transition);
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    content: '';
    top: -8px;
}

.hamburger-inner::after {
    content: '';
    bottom: -8px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--color-white);
    z-index: 1999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}

/* ========================================
   6. Hero Section
======================================== */
.hero-section {
    background: var(--color-background);
    padding: 140px 0 80px;
    border-bottom: 1px solid var(--color-gray-light);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   7. Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   8. Services Section
======================================== */
.services-section {
    padding: 80px 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.service-description {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Featured Services */
.featured-services {
    padding: 60px 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-gray-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.featured-card {
    text-align: center;
}

.featured-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    color: var(--color-primary);
}

.featured-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.featured-card h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.featured-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ========================================
   9. About Section
======================================== */
.about-section {
    padding: 80px 0;
    background: var(--color-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    padding: 0.75rem 0;
    color: var(--color-text);
    padding-left: 30px;
    position: relative;
}

.about-features li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem;
    text-align: center;
    min-width: 100px;
}

.experience-number {
    font-size: 2rem;
    font-weight: 600;
    display: block;
}

/* ========================================
   10. Team Section
======================================== */
.team-section {
    padding: 80px 0;
    background: var(--color-background);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    overflow: hidden;
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow-md);
}

.team-member-image {
    height: 250px;
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-image svg {
    width: 80px;
    height: 80px;
    fill: var(--color-gray);
}

.team-member-info {
    padding: 1.5rem;
    text-align: center;
}

.team-member-name {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.team-member-position {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member-bio {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Us Section */
.why-us-section {
    padding: 80px 0;
    background: var(--color-white);
}

.why-us-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 3rem;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.why-us-item {
    text-align: center;
}

.why-us-item h3 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.why-us-item p {
    color: var(--color-text-light);
}

/* ========================================
   11. CTA Section
======================================== */
.cta-section {
    padding: 80px 0;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
}

.cta-section .btn-primary:hover {
    background: var(--color-background);
}

.cta-section .btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-section .btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ========================================
   12. Contact Section
======================================== */
.contact-section {
    padding: 80px 0;
    background: var(--color-background);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background: var(--color-white);
    padding: 2.5rem;
    border: 1px solid var(--color-gray-light);
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-primary);
}

.info-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.info-content p {
    color: var(--color-text);
    font-size: 0.95rem;
}

.info-content a {
    color: var(--color-text);
}

.info-content a:hover {
    color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    padding: 2.5rem;
    border: 1px solid var(--color-gray-light);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.full-width {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-right: 10px;
    margin-top: 4px;
    width: auto;
}

/* ========================================
   13. Footer
======================================== */
.site-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--color-white);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.8);
}

.social-links a:hover svg {
    fill: var(--color-white);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.footer-legal-menu {
    margin-bottom: 1rem;
}

.footer-menu-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-wrap: wrap;
}

.footer-menu-list a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-menu-list a:hover {
    color: var(--color-white);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.copyright a {
    color: rgba(255, 255, 255, 0.6);
}

.copyright a:hover {
    color: var(--color-white);
}

/* Newsletter */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-bottom: 3rem;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.newsletter-text h3 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: var(--border-radius);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 10px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-primary-light);
}

/* ========================================
   14. Page Styles
======================================== */
.page-hero {
    background: var(--color-background);
    padding: 140px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-gray-light);
}

.page-title {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

/* Single Post */
.single-post {
    padding: 120px 0 80px;
    background: var(--color-white);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.entry-content h2 {
    margin: 2rem 0 1rem;
}

.entry-content h3 {
    margin: 1.5rem 0 0.75rem;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-light);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-text);
    font-size: 0.95rem;
}

.widget a:hover {
    color: var(--color-primary);
}

/* 404 Page */
.error-404 {
    padding: 140px 0 80px;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 6rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.error-description {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* ========================================
   15. Utilities
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.screen-reader-text {
    position: absolute;
    left: -9999px;
}
/* ========================================
   Kit Digital Section
======================================== */
.kit-digital-section {
    background: #f8f8f8;
    padding: 30px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.kit-digital-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.kit-digital-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.kit-digital-logos img {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.kit-digital-logos img:hover {
    opacity: 1;
}

/* Footer Certifications */
.footer-certifications {
    margin-top: 1.5rem;
    opacity: 0.8;
}

.footer-certifications img {
    filter: brightness(0) invert(1);
    height: 40px;
    width: auto;
}

/* Footer Contact Info */
.footer-contact-info {
    margin-bottom: 1.5rem;
}

.footer-contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-contact-info strong {
    color: #fff;
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.back-to-top.show {
    display: flex;
}

/* Divider in copyright */
.divider {
    margin: 0 1rem;
    opacity: 0.5;
}

/* Newsletter Form Button Fix */
.newsletter-form .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
}

.newsletter-form .btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* Responsive Kit Digital */
@media (max-width: 768px) {
    .kit-digital-section {
        padding: 20px 0;
    }
    
    .kit-digital-text {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .kit-digital-logos {
        gap: 20px;
    }
    
    .kit-digital-logos img {
        height: 40px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .divider {
        display: block;
        margin: 0.5rem 0;
    }
}
/* ========================================
   16. Responsive Design
======================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-title { font-size: 2rem; }
    .page-title { font-size: 2rem; }
    
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
    }
    
    /* Layout */
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid,
    .team-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        min-width: auto;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
}

/* ========================================
   17. Print Styles
======================================== */
@media print {
    .site-header,
    .site-footer,
    .menu-toggle,
    .hero-buttons,
    .social-links,
    .newsletter-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}