/*
Theme Name: Tema Personalizado
Theme URI: https://example.com
Author: Tu nombre
Author URI: https://example.com
Description: Un tema personalizado para tu sitio
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tema-personalizado
*/

body {
    font-family: var(--plg-font-sans);
    background-color: var(--plg-bg, #f8fafc);
    color: var(--plg-text, #0f172a);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

:root {
    /* Paleta Pro (Sincronizada con Plugin) */
    --plg-bg: #f8fafc;
    --plg-cardBg: #ffffff;
    --plg-text: #0f172a;
    --plg-mutedText: #64748b;
    --plg-border: #e2e8f0;

    --plg-accent: #0c497a;
    --plg-success: #10b981;
    --plg-warning: #f59e0b;
    --plg-danger: #ef4444;
    --plg-info: #3b82f6;

    --plg-radius: 16px;
    --plg-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
}

.container {
    width: 100%;
    padding: 20px;
}

.sidebar {
    width: 250px;
    background-color: #343a40;
    color: #fff;
    padding: 15px;
    float: left;
    height: 100vh;
}

.content {
    margin-left: 260px;
    padding: 20px;
}

/* ==========================================================================
   HEADER MODERNO
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c497a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    max-width: 280px;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 60%;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-icon {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active .nav-toggle-icon:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active .nav-toggle-icon:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

.site-footer {
    margin-top: auto;
}

/* Sección de oficinas */
.footer-offices {
    background: linear-gradient(135deg, #1e3a5f 0%, #0c497a 100%);
    color: #ffffff;
    padding: 3.5rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.office-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.office-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.office-city {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    letter-spacing: 1px;
    color: #ffffff;
}

.office-address {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.office-phone {
    font-size: 0.95rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.phone-label {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.office-phone a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.office-phone a:hover {
    color: #fbbf24;
}

/* Sección inferior del footer */
.footer-bottom {
    background-color: #0a1929;
    padding: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-facebook {
    background-color: #1877f2;
    color: #ffffff;
}

.social-facebook:hover {
    background-color: #0d65d9;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-instagram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.social-whatsapp:hover {
    background-color: #1fb855;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.site-content {
    min-height: calc(100vh - 400px);
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 992px) {
    .header-container {
        padding: 0 1.5rem;
    }

    .header-logo {
        max-width: 220px;
    }

    .logo-img {
        height: 40px;
    }

    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #1e3a5f 0%, #0c497a 100%);
        padding: 5rem 1.5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 1rem 1.25rem;
        font-size: 16px;
    }

    .offices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-offices {
        padding: 2.5rem 1.5rem;
    }

    .footer-bottom {
        padding: 1.5rem;
    }

    .footer-logo-img {
        height: 50px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* Overlay when menu is open */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
        min-height: 70px;
    }

    .header-logo {
        max-width: 180px;
    }

    .logo-img {
        height: 35px;
    }

    .office-city {
        font-size: 1.1rem;
    }

    .office-address,
    .office-phone {
        font-size: 0.9rem;
    }
}