/* Custom CSS for Centro Asturiano de Uruguay */

/* Color Palette - Asturian Flag Colors */
:root {
    --primary-color: #0065BD;    /* Asturian Blue */
    --secondary-color: #F6EB16;  /* Asturian Yellow */
    --tertiary-color: #CFDEE7;   /* Light blue-gray */
    --accent-color: #38a169;     /* Green accent */
    --text-dark: #2d3748;        /* Text dark */
    --text-light: #718096;       /* Text light */
    --bg-light: #f7fafc;         /* Background light */
    --bg-white: #ffffff;         /* Background white */
    --border-color: #e2e8f0;     /* Border color */
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar height */
}

/*creado por mi lol*/
.justify-text {
    text-align: justify !important;
}


/* Ensure all containers stay within viewport */
.container, .container-fluid {
    max-width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    background: var(--tertiary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: 100%;
    left: 0;
    right: 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand .navbar-text {
    color: var(--primary-color) !important;
    margin-left: 10px;
    line-height: 1.2;
}

.navbar-text {
    display: inline;
}

.navbar-break {
    display: inline;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: url("imgs/inicio/inicio.jpg?v=1");/*linear-gradient(135deg, rgba(0, 101, 189, 0.9), rgba(246, 235, 22, 0.3));*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 101, 189, 0.6);
    display: flex;
    align-items: center;
}

.hero-title {
    padding-top: 1rem;
    font-size: 2.5rem;
    margin-bottom: 0.1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-gallery-buttons {
    text-align: center;
}

.hero-gallery-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.hero-gallery-buttons .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background: white;
}

section.bg-light {
    background-color: var(--bg-light) !important;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.event-date .dayName {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
}

.event-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-time {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    transition: transform 0.3s ease;
}

.eventoAnterior {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.eventoAnteriorDiv {
    height: 250px;
}

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

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Location Info */
.location-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    width: 100%;
}

.location-info h4, .location-info h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.location-info .text-center h4 {
    justify-content: center;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
    min-height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    margin-bottom: 1.5rem;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.testimonial-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.testimonial-content small {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Directiva Cards */
.directiva-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.directiva-card:hover {
    transform: translateY(-5px);
}

.directiva-image {
    margin-bottom: 1.5rem;
}

.directiva-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.directiva-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.directiva-content .position {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0;
}

/* Presidents Gallery */
.presidents-gallery {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.presidents-gallery img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 50%;
}

.whatsapp-button a:hover {
    text-decoration: none;
}

.whatsapp-button i {
    font-size: 2rem;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Directiva List */
.directiva-list {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.directiva-list .list-group-item {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.directiva-list .list-group-item:last-child {
    border-bottom: none;
}

.directiva-list .list-group-item:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.directiva-list h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.directiva-list p {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--text-dark) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

footer a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-light {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Historia Section Image */
.historia-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.historia-image:hover {
    transform: scale(1.02);
}

/* Calendar Container */
.calendar-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calendario-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.calendario-image:hover {
    transform: scale(1.02);
}

.actividad-principal-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.actividad-principal-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.actividad-principal-image:hover {
    transform: scale(1.02);
}

/* Page Header Styles */
.page-header {
    padding: 120px 0 80px;
    margin-top: 76px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* News Cards Styles */
.news-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.news-image:hover img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 101, 189, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-image:hover .news-overlay {
    opacity: 1;
}

.news-overlay i {
    color: white;
    font-size: 2rem;
}

.news-content {
    padding: 2rem;
}

.news-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.4;
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.news-date i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Image Modal Styles */
.image-modal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
}

.image-modal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

.image-modal .modal-body {
    padding: 0;
    text-align: center;
}

.image-modal .modal-body img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}

.image-modal .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
}

.image-modal .btn-close:hover {
    background: rgba(255, 255, 255, 1);
}

/* Media Modal Styles (for both images and videos) */
#mediaModal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 10vh);
}

#mediaModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: white;
    max-width: 100%;
    max-height: 100%;
}

#mediaModal .modal-body {
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

#mediaModal .modal-body img,
#mediaModal .modal-body video {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    margin: auto;
    display: block;
}

#mediaModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

#mediaModal .modal-body p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 992px) {
    /* Fix hero section at problematic breakpoint */
    .hero-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        position: relative;
        overflow-x: hidden;
    }
    
    .hero-overlay {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .navbar {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-content h4 {
        font-size: 1.2rem;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
    
    .event-date {
        align-self: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .location-info {
        margin-bottom: 2rem;
    }
    
    /* Ensure hero section works on mobile */
    .hero-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    /* Navbar responsive text */
    .navbar-brand {
        font-size: 1.2rem !important;
        align-items: flex-start;
    }
    
    .navbar-brand .navbar-text {
        margin-left: 8px;
    }
    
    .navbar-break {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 90px 0 50px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-content h4 {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* Responsive navbar brand */
    .navbar-brand {
        font-size: 1rem !important;
        line-height: 1.2;
        max-width: calc(100vw - 100px);
        align-items: flex-start;
    }
    
    .navbar-brand img {
        height: 25px !important;
        margin-right: 8px !important;
        flex-shrink: 0;
    }
    
    .navbar-brand .navbar-text {
        margin-left: 6px;
        text-align: left;
    }
    
    .navbar-break {
        display: block;
    }
    
    .hero-gallery-buttons .btn-secondary {
        display: block;
        width: 100%;
        margin-bottom: 1px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    /* Make "Conoce Nuestra Historia" button smaller */
    .btn-light {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* Additional responsive rules for navbar */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.9rem !important;
        max-width: calc(100vw - 80px);
        align-items: flex-start;
    }
    
    .navbar-brand img {
        height: 22px !important;
        margin-right: 6px !important;
        flex-shrink: 0;
    }
    
    .navbar-brand .navbar-text {
        margin-left: 4px;
    }
}

@media (max-width: 388px) {
    .navbar-brand {
        font-size: 0.8rem !important;
        max-width: calc(100vw - 70px);
        align-items: flex-start;
    }
    
    .navbar-brand img {
        height: 20px !important;
        margin-right: 5px !important;
        flex-shrink: 0;
    }
    
    .navbar-brand .navbar-text {
        margin-left: 3px;
    }

    .hero-title {
        padding-top: 5.5rem;
    }
} 

/* Regularización de Deuda Floating Button */
.deuda-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #212121;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    cursor: pointer;
    font-size: 2rem;
    transition: background 0.2s, transform 0.3s, box-shadow 0.3s;
}
.deuda-button:hover {
    background: #8c8c8c;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.6);
}

/* Floating Message Box */
.deuda-message {
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 1060;
    background: #fffbe6;
    color: #333;
    border: 1px solid #ffe082;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    width: 340px;
    max-width: 90vw;
    padding: 0;
    display: none;
    animation: fadeIn 0.3s;
}
.deuda-message.show {
    display: block;
}
.deuda-message-content {
    padding: 20px 20px 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    max-height: 70vh;
    overflow-y: auto;
}
.deuda-close {
    display: block;
    width: 100%;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 0;
    margin: 20px 0 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    letter-spacing: 0.5px;
}
.deuda-close:hover, .deuda-close:focus {
    background: #ffb300;
    color: #222;
    outline: none;
}
.deuda-title {
    text-align: center !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .whatsapp-button {
        right: 10px;
        bottom: 10px;
        width: 60px;
        height: 60px;
    }
    .deuda-button {
        left: 10px;
        bottom: 10px;
        width: 60px;
        height: 60px;
    }
    .deuda-message {
        left: 10px;
        width: 95vw;
        bottom: 100px;
    }
} 
