/*
Theme Name: AMIUTEM Theme
Theme URI: https://amiutem.edu.mx/
Author: Custom Theme
Author URI: https://amiutem.edu.mx/
Description: Custom WordPress theme for AMIUTEM.
Version: 1.0.0
Text Domain: amiutem
*/
/* 
  ========================================
  AMIUTEM - Editorial Design System
  ========================================
*/

:root {
    /* Colors */
    --color-primary: #1D4ED8; /* Institutional Blue */
    --color-primary-dark: #1E3A8A;
    --color-secondary: #E0E7FF;
    --color-dark: #111827; /* High contrast text */
    --color-gray: #4B5563;
    --color-light-gray: #F3F4F6;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Montserrat', var(--font-body);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Layout */
    --container-max: 1200px;
    --content-max: 800px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base 16px for accessibility */
    overflow-x: hidden; /* Evitar scroll horizontal en móvil */
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Evitar scroll horizontal en móvil */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover, a:focus {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.max-w-content {
    max-width: var(--content-max);
    margin-inline: auto;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.align-center {
    align-items: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* Spacing Utilities */
.py-large { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.my-medium { margin-top: var(--space-md); margin-bottom: var(--space-md); }
.mb-large { margin-bottom: var(--space-lg); }
.mt-large { margin-top: var(--space-lg); }
.mt-auto { margin-top: auto; }
.gap-large { gap: var(--space-lg); }

/* Backgrounds */
.bg-light { background-color: var(--color-light-gray); }
.bg-dark { background-color: var(--color-dark); color: var(--color-white); }
.bg-secondary { background-color: var(--color-secondary); }

/* Typography Classes */
.lead-text {
    font-size: 1.25rem;
    color: var(--color-gray);
    line-height: 1.8;
}

.subtitle-text {
    font-size: 1.125rem;
    color: var(--color-gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn:hover, .btn:focus {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-light:hover, .btn-light:focus {
    background-color: var(--color-light-gray);
    color: var(--color-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-md);
}

.action-buttons-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* Images & Media */
.responsive-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-img { box-shadow: var(--shadow-lg); border-radius: var(--radius-md); }
.rounded-img { border-radius: var(--radius-md); }

/* Header Navigation */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

.main-nav a {
    color: var(--color-gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
    padding: 0.5rem;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--color-white);
        border-bottom: 1px solid #E5E7EB;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .main-nav.is-open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--space-sm);
        padding: 0;
        width: 100%;
    }

    /* Corrección de contenido desplazado en móvil */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr !important;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Hero Section */
.hero-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(to bottom, var(--color-light-gray), var(--color-white));
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: block;
}

@media (max-width: 767px) {
    .hero-section {
        padding: var(--space-lg) 0;
    }
    .hero-logo {
        max-width: 100%;
    }
}

/* SNTCEAM Section */
.links-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .links-group {
        align-items: flex-start;
    }
}

/* Galleries */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

.gallery-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Notices */
.badge-title {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.notice-img {
    max-width: 700px;
    margin-inline: auto;
}

/* Journal Section */
.journal-desc {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.contain-img {
    object-fit: contain;
    padding: var(--space-sm);
    background-color: var(--color-light-gray); /* Fondo gris en vez de blanco vacío */
}

@media (max-width: 767px) {
    .card-img {
        height: 180px;
    }
}

.card-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.25rem;
}

.card-body p {
    color: var(--color-gray);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* Quotes */
.eyebrow {
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-sm);
}

.editorial-quote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.4;
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-md) 0;
}

.editorial-quote footer {
    margin-top: var(--space-sm);
    font-size: 1rem;
    font-style: normal;
    color: var(--color-gray);
}

/* Event History */
.event-card {
    background-color: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0;
}

.event-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.checkmark-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.checkmark-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-gray);
}

.checkmark-list li::before {
    content: '\2713'; /* Unicode ✓ - avoids encoding corruption */
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1rem;
}

/* Board */
.board-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 600px;
    margin: 0 auto;
}

.board-member {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #E5E7EB;
}

.board-member:last-child {
    border-bottom: none;
}

@media (min-width: 640px) {
    .board-member {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.board-member .name {
    font-size: 1.125rem;
    font-weight: 600;
}

.board-member .role {
    color: var(--color-gray);
}

.vocals-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray);
}

.vocals-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--color-white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    padding: var(--space-md) 0;
    background-color: #152238 !important; /* Mismo color de fondo que la imagen logo_footer.png */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.footer-logo img {
    max-width: 250px;
    height: auto;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}


.footer-info h5 {
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .footer-info h5 {
        white-space: nowrap;
    }
}

.copyright {
    color: #9CA3AF;
    font-size: 0.875rem;
}
/* Header Logo */
.header-logo {
    height: 45px;
    width: auto;
    display: block;
}


