/* CR Auditores & Asociados - Main Stylesheet */

:root {
    --primary-blue: #0066cc;
    --dark-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --green: #26a65b;
    --text-color: #333333;
    --border-color: #ddd;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--white);
}

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

a:hover {
    color: #0052a3;
}

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

/* Header & Navigation */
.header-top {
    background-color: var(--dark-gray);
    color: white;
    padding: 12px 0;
    font-size: 12px;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 10px;
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
}

.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.contact-link {
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.contact-link:hover {
    color: #9fd3ff;
}

.social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.social-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.social-icon .icon {
    width: 18px;
    height: 18px;
}

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

.social-fb:hover { background-color: #1877f2; }
.social-yt:hover { background-color: #ff0000; }
.social-wa:hover { background-color: #25d366; }

.language-switcher {
    display: flex;
    gap: 8px;
}

.language-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: transparent;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.language-btn:hover,
.language-btn.active {
    background-color: white;
    color: var(--dark-gray);
}

/* Main Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 220px;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Main Navigation */
.main-nav {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 15px 15px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--light-gray);
    border-bottom-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Page Header */
.page-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 15px;
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 12px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Content Layout */
.content {
    margin-bottom: 40px;
}

.content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content h3 {
    font-size: 20px;
    margin: 20px 0 15px;
    color: var(--text-color);
}

.content p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

/* About Section */
.about-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.about-intro p {
    text-align: center;
    font-size: 15px;
}

.about-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.about-section {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.about-section h3 {
    color: var(--primary-blue);
    margin-top: 0;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.values-list li {
    list-style: none;
    padding-left: 20px;
    position: relative;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* News/Blog Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.news-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.news-card p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-card a {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 13px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.gallery-item-count {
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.9;
}

/* Services Accordion */
.accordion-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    margin: 30px 0;
}

.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-panel {
    background-color: var(--light-gray);
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.accordion-panel.open {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: none;
    border: none;
    padding: 18px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: left;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: rgba(0, 102, 204, 0.06);
}

.accordion-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header-title .icon {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.accordion-chevron {
    flex-shrink: 0;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
    /* A gentle one-time nudge on first load so visitors notice the chevron
       is interactive, without being distracting on every page view. */
    animation: chevron-hint 2.2s ease-in-out 1;
}

@keyframes chevron-hint {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(4px); }
    40% { transform: translateX(0); }
    60% { transform: translateX(4px); }
}

.accordion-panel.open .accordion-chevron {
    animation: none;
    transform: rotate(90deg);
}

.accordion-body {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-body-inner {
    padding: 0 20px 20px;
}

.accordion-body-inner ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-body-inner li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.accordion-body-inner li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-blue);
}

@media (max-width: 768px) {
    .accordion-columns {
        grid-template-columns: 1fr;
    }
}

/* Downloads: numbered, boxed file rows inside an accordion folder */
.download-file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-file-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.download-file-box:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

.download-file-number {
    font-size: 20px;
    font-weight: 700;
    color: #ccc;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.file-type-badge {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.download-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.download-file-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.download-file-meta {
    font-size: 13px;
    color: #999;
}

.download-file-box .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Category/folder browsing cards */
.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.folder-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 6px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.25s ease;
}

.folder-card:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.folder-card .icon {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.folder-card-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.folder-card-count {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    background-color: var(--green);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

.form-submit:hover {
    background-color: #1e8449;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: white;
    padding: 40px 15px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #ccc;
    font-size: 13px;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-contact {
    font-size: 13px;
    line-height: 1.8;
}

.footer-contact strong {
    color: white;
}

.footer-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-photo {
    display: block;
    width: 80px;
    height: 80px;
    background-color: #333;
    border-radius: 3px;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.footer-photo:hover {
    opacity: 0.8;
}

.footer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 13px;
}

.pagination a:hover {
    background-color: var(--light-gray);
}

.pagination .active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}

/* Messages */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-wrap: wrap;
        gap: 5px;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 12px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .about-sections {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .footer {
        padding: 30px 15px 15px;
    }
}

@media (max-width: 480px) {
    .header-contact {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
    }

    .logo-img {
        width: 160px;
    }

    .main-nav {
        flex-direction: column;
    }

    .main-nav a {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 10px 15px;
    }

    .main-nav a:hover,
    .main-nav a.active {
        border-left-color: var(--primary-blue);
        border-bottom: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-sections {
        gap: 15px;
    }

    .page-header h1 {
        font-size: 20px;
    }
}

/* Logo as link */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

@media (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .main-nav.open {
        display: flex;
    }
}

/* Alert close button */
.alert {
    position: relative;
    justify-content: space-between;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #0052a3;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 30px;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-figure {
    margin: 0;
    max-width: 100%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    font-size: 14px;
    margin-top: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}

/* Form field errors */
.field-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1) !important;
}

.field-error-msg {
    color: #c0392b;
    font-size: 12px;
    margin-top: 5px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: -12px;
    margin-bottom: 15px;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin panel shared styles */
.admin-body {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.admin-header {
    background-color: var(--dark-gray);
    color: white;
    padding: 15px 0;
}

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

.admin-header a {
    color: white;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.admin-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.admin-table img.thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 3px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

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

.btn-danger {
    background-color: #c0392b;
    color: white;
}

.btn-secondary {
    background-color: #999;
    color: white;
}

.btn:hover {
    filter: brightness(0.92);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .admin-form-grid,
    .admin-form-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .admin-form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

.image-preview {
    max-width: 250px;
    max-height: 180px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    display: none;
    object-fit: cover;
}

.image-preview.visible {
    display: block;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-published {
    background-color: #d4edda;
    color: #155724;
}

.status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================================================
   Homepage Hero: photo carousel + intro text
   ================================================== */
.hero-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-gallery {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hero-gallery-placeholder {
    aspect-ratio: 4 / 3;
    background-color: var(--light-gray);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 6px;
    font-size: 13px;
}

.carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--light-gray);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s;
    z-index: 2;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.65);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s, transform 0.25s;
}

.carousel-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-media {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.25s;
}

.btn-media:hover {
    background-color: #0052a3;
    color: white;
}

.hero-heading {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-dropcap {
    text-align: justify;
    line-height: 1.8;
}

.hero-dropcap::first-letter {
    font-size: 46px;
    font-weight: 700;
    float: left;
    line-height: 1;
    padding-right: 8px;
    color: var(--primary-blue);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   Sitios de Interes / Useful Links
   ================================================== */
.interest-sites {
    background-color: var(--light-gray);
    padding: 40px 0;
    margin-top: 20px;
}

.interest-sites h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 26px;
}

.interest-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 24px;
    align-items: center;
}

.interest-site-item {
    background-color: var(--white);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.interest-site-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.interest-site-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Admin: gallery photo management */
.photo-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.photo-manage-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

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

.photo-manage-card form {
    padding: 15px;
}

.photo-manage-card .form-group {
    margin-bottom: 10px;
}

.photo-manage-card .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
}

.photo-manage-card input,
.photo-manage-card textarea {
    font-size: 13px;
    padding: 8px;
}

.photo-manage-card .action-buttons {
    flex-wrap: wrap;
    align-items: center;
}

.blog-intro {
    text-align: center !important;
    color: #666;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 35px !important;
}
