/* ============================================
   PUNTO CIEGO - CUSTOM CSS
   Mobile-First Approach | Minimalista
   ============================================ */

/* ============================================
   01. VARIABLES Y RESET
   ============================================ */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-dark: #333333;
    --color-gray-medium: #777777;
    --color-gray-light: #f8f8f8;
    --color-gray-border: #e0e0e0;
    --font-family: 'Work Sans', sans-serif;
    --transition-speed: 0.3s;
    --transition-ease: ease-out;
}

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-gray-medium);
    line-height: 1.7;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   02. TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--color-black);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: all var(--transition-speed) var(--transition-ease);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-gray-medium);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-black);
}

/* ============================================
   03. HEADER SECTION
   ============================================ */
.header-section {
    padding: 3rem 0 2rem;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-border);
}

.logo-wrapper {
    text-align: center;
}

.logo {
    max-width: 180px;
    height: auto;
    display: inline-block;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.logo:hover {
    opacity: 0.8;
}

/* ============================================
   04. ABOUT SECTION
   ============================================ */
.about-section {
    padding: 4rem 0;
    background-color: var(--color-gray-light);
}

.about-content {
    text-align: center;
}

.about-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-medium);
    margin-bottom: 1.25rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   05. NEWS SECTION
   ============================================ */
.news-section {
    padding: 4rem 0 5rem;
    background-color: var(--color-white);
}

.news-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

/* ============================================
   06. TABS NAVIGATION (Bootstrap Override)
   ============================================ */
.news-tabs {
    border-bottom: 2px solid var(--color-gray-border);
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.news-tabs .nav-item {
    margin-bottom: 0;
}

.news-tabs .nav-link {
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-medium);
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    background-color: transparent;
    transition: all var(--transition-speed) var(--transition-ease);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    margin-bottom: -2px;
}

.news-tabs .nav-link:hover {
    color: var(--color-black);
    background-color: transparent;
    border-color: var(--color-gray-medium);
}

.news-tabs .nav-link.active {
    color: var(--color-black);
    background-color: transparent;
    border-color: var(--color-black);
    font-weight: 600;
}

/* ============================================
   07. NEWS CARDS
   ============================================ */
.news-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 0;
    padding: 1.75rem;
    height: 100%;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--color-black);
    transition: height var(--transition-speed) var(--transition-ease);
}

.news-card:hover {
    border-color: var(--color-black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.news-card:hover::before {
    height: 100%;
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-gray-light);
    border-radius: 2px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--color-gray-medium);
    font-weight: 400;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color var(--transition-speed) var(--transition-ease);
}

.news-card:hover .news-card-title {
    color: var(--color-gray-dark);
}

.news-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray-medium);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   08. MODALS (Bootstrap Override)
   ============================================ */
.modal-content {
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--color-gray-border);
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.modal-header .btn-close {
    margin: 0;
    padding: 0;
    opacity: 0.6;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    background-color: var(--color-gray-light);
    border-radius: 2px;
}

.modal-date {
    font-size: 0.9rem;
    color: var(--color-gray-medium);
    font-weight: 400;
}

.modal-news-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.modal-news-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-medium);
    margin-bottom: 1.25rem;
    text-align: justify;
}

.modal-news-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   09. RESPONSIVE - TABLET
   ============================================ */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .header-section {
        padding: 4rem 0 2.5rem;
    }

    .logo {
        max-width: 220px;
    }

    .about-section {
        padding: 5rem 0;
    }

    .about-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .about-text {
        font-size: 1.1rem;
        line-height: 1.9;
    }

    .news-section {
        padding: 5rem 0 6rem;
    }

    .news-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .news-tabs .nav-link {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    .news-card {
        padding: 2rem;
    }

    .news-card-title {
        font-size: 1.4rem;
    }

    .news-card-excerpt {
        font-size: 1rem;
    }

    .modal-body {
        padding: 2.5rem;
    }

    .modal-news-title {
        font-size: 2rem;
    }

    .modal-news-content p {
        font-size: 1.05rem;
    }
}

/* ============================================
   10. RESPONSIVE - DESKTOP
   ============================================ */
@media (min-width: 992px) {
    .header-section {
        padding: 5rem 0 3rem;
    }

    .logo {
        max-width: 240px;
    }

    .about-section {
        padding: 6rem 0;
    }

    .about-title {
        font-size: 3rem;
    }

    .news-section {
        padding: 6rem 0 7rem;
    }

    .news-title {
        font-size: 3rem;
    }

    .news-card {
        padding: 2.25rem;
    }

    .modal-body {
        padding: 3rem;
    }
}

/* ============================================
   11. UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

/* ============================================
   12. SELECTION STYLING
   ============================================ */
::selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* ============================================
   13. SCROLL BEHAVIOR
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   14. BOOTSTRAP OVERRIDES ESPECÍFICOS
   ============================================ */

/* Evitar conflictos de Bootstrap en eventos de botones */
.btn:focus,
.btn:active,
.btn-close:focus,
.btn-close:active,
.nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Tabs contenido con fade suave */
.tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}

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

/* Modal backdrop más suave */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* ============================================
   15. ACCESIBILIDAD
   ============================================ */
.btn-close:focus-visible,
.nav-link:focus-visible,
.news-card:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 2px;
}

/* Para usuarios que prefieren reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   16. PRINT STYLES
   ============================================ */
@media print {
    .header-section,
    .news-tabs,
    .btn-close {
        display: none;
    }

    .modal-news-content p {
        text-align: left;
    }
}