/*
Theme Name: SOGSP Theme
Author: devlcp
Author URI: 
Description: Theme personalizado para SOGSP
Version: 1.2.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sogsptheme
*/

/* Reset & Base Styles
--------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin-top: 0 !important; /* Remove WordPress admin bar margin */
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    background-color: #0a0a0a;
    color: #b3b3b3;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Typography
--------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout & Grid
--------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header
--------------------------------------------- */
.site-header {
    padding: 1rem 0;
    background-color: #131313;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 4px solid #202020;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    max-width: 80px;
    border-radius: 50%;
    height: auto;
}

.site-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #a5a5a5;
    text-decoration: none;
}

.site-description {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes navigation to the right */
}

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

.menu-primary li {
    position: relative;
}

.menu-primary a {
    color: #b9b9b9;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.menu-primary a:hover {
    color: #007bff;
}

/* Submenu styles */
.menu-primary .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 100;
}

.menu-primary li:hover > .sub-menu {
    display: block;
}

.menu-primary .sub-menu li {
    padding: 0;
}

.menu-primary .sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #b9b9b9;
    position: relative;
    margin: 6px auto;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Responsive navigation */
@media screen and (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        margin-left: 0;
    }

    .menu-primary {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(19, 19, 19, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        z-index: 999;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .menu-primary.active {
        display: flex;
        animation: menuFadeIn 0.3s ease forwards;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-primary li {
        margin: 1rem 0;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
    }

    .menu-primary.active li {
        animation: menuItemFadeIn 0.5s ease forwards;
    }

    @keyframes menuItemFadeIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-primary li:nth-child(1) { animation-delay: 0.1s; }
    .menu-primary li:nth-child(2) { animation-delay: 0.2s; }
    .menu-primary li:nth-child(3) { animation-delay: 0.3s; }
    .menu-primary li:nth-child(4) { animation-delay: 0.4s; }
    .menu-primary li:nth-child(5) { animation-delay: 0.5s; }

    .menu-primary a {
        color: #ffffff;
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
    }

    .menu-primary a:hover {
        color: #007bff;
        transform: scale(1.1);
    }

    /* Submenu styles for mobile */
    .menu-primary .sub-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        display: none;
        animation: submenuFadeIn 0.3s ease forwards;
    }

    @keyframes submenuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-primary .sub-menu.active {
        display: block;
    }

    .menu-primary .sub-menu a {
        font-size: 1.2rem;
        color: #b9b9b9;
        padding: 0.3rem 1rem;
    }

    /* Prevent scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Content
--------------------------------------------- */
.site-content {
    padding: 1.2rem;
    flex: 1 0 auto; /* Hace que el contenido ocupe el espacio disponible */
}

/* Sidebar
--------------------------------------------- */
.widget-area {
    margin-top: 2rem;
}

/* Footer
--------------------------------------------- */
.site-footer {
    padding: 0.5rem 0;
    background-color: #131313;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0; /* Evita que el footer se encoja */
    width: 100%;
    margin-top: auto; /* Empuja el footer al fondo cuando hay espacio */
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.footer-main {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05)
    );
    margin: 0;
    width: 100%;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.footer-links .aut, .aut a {
    font-size: small;
}

.aut a {
    font-weight: bold;
}

.footer-link {
    color: #a5a5a5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-separator {
    color: #666;
    font-size: 0.9rem;
}

.footer-info {
    color: #a5a5a5;
    font-size: 0.9rem;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    transform: translateY(-2px);
    background-color: #2a2a2a;
}

.social-icon-svg {
    width: 20px;
    height: 20px;
    fill: #a5a5a5;
    transition: fill 0.3s ease;
}

.social-icon:hover .social-icon-svg {
    fill: #fff;
}

/* Specific social media hover colors */
.social-icon.facebook:hover {
    background-color: #1877f2;
    border-color: #1877f2;
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 1rem;
    }
}

/* Media Queries
--------------------------------------------- */
@media screen and (min-width: 768px) {
    /* Tablet styles */
}

@media screen and (min-width: 1024px) {
    /* Desktop styles */
}

/* Custom Cover Effects
--------------------------------------------- */
.cover-fade-edges {
    color: #c4c4c4;
    position: relative;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    overflow: hidden;
}

.cover-fade-edges::before,
.cover-fade-edges::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 1;
    pointer-events: none;
}

.cover-fade-edges::before {
    top: 0;
    background: linear-gradient(to bottom, 
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.8) 20%,
        rgba(10, 10, 10, 0) 100%
    );
}

.cover-fade-edges::after {
    bottom: 0;
    background: linear-gradient(to top, 
        #0a0a0a 0%,
        rgba(10, 10, 10, 0.8) 20%,
        rgba(10, 10, 10, 0) 100%
    );
}

.cover-fade-edges .wp-block-cover__image-background {
    filter: brightness(0.8);
}

.cover-fade-edges .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 15px;
}

/* WordPress Core Classes
--------------------------------------------- */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin: 1.5em auto;
}

/* WordPress Editor Styles
--------------------------------------------- */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    padding: 0.5em 0;
}

.wp-block-list {
    padding-left: 2em;
}

.wp-block-separator {
    border: none;
    border-top: 2px solid #0a0a0a;
    padding: 1em 0;
}

/* Forms & Buttons
--------------------------------------------- */
/* Base button styles */
.btn,
button.btn,
input[type="button"].btn,
input[type="reset"].btn,
input[type="submit"].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    gap: 0.5rem;
    min-width: 120px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Primary Button - Para llamadas a la acción principales */
.btn-primary,
button.btn-primary,
input[type="button"].btn-primary,
input[type="reset"].btn-primary,
input[type="submit"].btn-primary {
    background: #2a2a2a;
    color: #b9b9b9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid #3a3a3a;
    transition: all 0.3s ease;
}

.btn-primary:hover,
button.btn-primary:hover,
input[type="button"].btn-primary:hover,
input[type="reset"].btn-primary:hover,
input[type="submit"].btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: #ffffff;
}

/* Secondary Button - Para acciones secundarias */
.btn-secondary,
button.btn-secondary,
input[type="button"].btn-secondary,
input[type="reset"].btn-secondary,
input[type="submit"].btn-secondary {
    background: #2a2a2a;
    color: #b9b9b9;
    border: 2px solid #3a3a3a;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
button.btn-secondary:hover,
input[type="button"].btn-secondary:hover,
input[type="reset"].btn-secondary:hover,
input[type="submit"].btn-secondary:hover {
    background: #3a3a3a;
    border-color: #4a4a4a;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Ghost Button - Para acciones sutiles o alternativas */
.btn-ghost {
    background: transparent;
    color: #b9b9b9;
    border: 2px solid #3a3a3a;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #b9b9b9;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Accent Button - Para destacar acciones especiales */
.btn-accent {
    background: #2a2a2a;
    color: #b9b9b9;
    border: 2px solid #3a3a3a;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 110, 0.3);
    background: linear-gradient(135deg, #ff4b6e, #ff8f3c);
    border-color: #ff4b6e;
    color: #ffffff;
}

/* Info Button - Para enlaces de "Leer más" o información adicional */
.btn-info {
    background: #2a2a2a;
    color: #b9b9b9;
    border: 2px solid #3a3a3a;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #1a1a1a;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

/* Small Button Variant */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 100px;
}

/* Large Button Variant */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-width: 160px;
}

/* Full Width Button */
.btn-block {
    display: flex;
    width: 100%;
}

/* Button with Icon */
.btn-icon {
    padding-right: 1rem;
}

.btn-icon svg {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5rem;
}

/* Disabled State */
.btn[disabled],
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1.2em;
    height: 1.2em;
    border: 2px solid;
    border-radius: 50%;
    border-color: #fff #fff #fff transparent;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Button Group */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Custom Classes & Components
--------------------------------------------- */
/* WordPress Cover Block customization */
.wp-block-cover {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

.wp-block-cover .wp-block-cover__inner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.wp-block-cover__image-background {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Add your custom classes here */
