/* ===================================
   DURANDO TEAM - MODERN CYCLING WEBSITE
   Clean, Professional, Responsive Design
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    color: #0c4aa3;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: -5px;
}

.logo span {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0c4aa3;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0c4aa3;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #0c4aa3;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===================================
   HERO TITLE SECTION (Inicio)
   =================================== */

.hero-title-section {
    margin-top: 80px;
    background-image: url('/static/inicio-ciclistas.jpg?v=2');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    padding: 0;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-title-section .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 2rem;
}

.main-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: -1px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line-top,
.title-line-bottom {
    display: block;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
}

.title-line-top {
    font-size: 3.5rem;
}

.title-line-bottom {
    font-size: 3.5rem;
}

@media (max-width: 1200px) {
    .hero-title-section {
        padding-bottom: 60%;
    }
    
    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title-section {
        padding-bottom: 70%;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .hero-title-section .container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title-section {
        padding-bottom: 80%;
    }
    
    .main-title {
        font-size: 1.6rem;
        letter-spacing: 0;
    }
    
    .hero-title-section .container {
        padding: 1rem;
    }
}

/* ===================================
   FEATURES SECTION (Inicio)
   =================================== */

.features-section {
    padding: 5rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #0c4aa3;
    box-shadow: 0 10px 30px rgba(12, 74, 163, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: #0c4aa3;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(12, 74, 163, 0.3);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(12, 74, 163, 0.4);
}

/* ===================================
   PAGE HEADER (All Pages)
   =================================== */

.page-header {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ===================================
   HISTORIA PAGE
   =================================== */

.historia-content {
    padding: 5rem 0;
    background: white;
}

.historia-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.biografia-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.biografia-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.biografia-image img {
    width: 100%;
    height: auto;
    display: block;
}

.biografia-content h2 {
    color: #0c4aa3;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.biografia-content h3 {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.biografia-content p {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.biografia-content .highlight {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #0c4aa3;
    font-weight: 600;
    color: #0c4aa3;
}

.valores-section {
    margin-top: 5rem;
}

.valores-section h2 {
    text-align: center;
    color: #0c4aa3;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.valor-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.valor-card i {
    font-size: 3rem;
    color: #0c4aa3;
    margin-bottom: 1rem;
}

.valor-card h3 {
    color: #0c4aa3;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.valor-card p {
    color: #6c757d;
}

/* ===================================
   PLANES PAGE
   =================================== */

.planes-section {
    padding: 5rem 0;
    background: white;
}

.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.plan-card.featured {
    border-color: #0c4aa3;
    box-shadow: 0 10px 40px rgba(12, 74, 163, 0.2);
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.plan-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0c4aa3;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.plan-header {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.plan-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.plan-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.plan-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.plan-content {
    padding: 2rem;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.plan-features i {
    color: #0c4aa3;
    margin-top: 0.2rem;
}

.plan-footer {
    padding: 0 2rem 2rem;
}

.plan-button {
    display: block;
    text-align: center;
    background: #0c4aa3;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.plan-button:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.planes-info {
    margin-top: 3rem;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #0c4aa3;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: #0c4aa3;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.info-box p {
    color: #495057;
    line-height: 1.6;
}

/* ===================================
   LOGROS PAGE
   =================================== */

.logros-content {
    padding: 5rem 0;
    background: white;
}

.logros-section {
    margin-bottom: 5rem;
}

.logros-section.entrenador {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-title i {
    font-size: 2.5rem;
    color: #0c4aa3;
}

.section-title h2 {
    color: #0c4aa3;
    font-size: 2.5rem;
    font-weight: 800;
}

.logros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.logro-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid #0c4aa3;
    transition: all 0.3s ease;
}

.logro-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logro-item i {
    color: #ffd700;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.logro-item p {
    color: #495057;
    line-height: 1.6;
}

.logro-item.wide {
    grid-column: 1 / -1;
}

.logros-cta {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    padding: 4rem 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-top: 4rem;
}

.logros-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.logros-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===================================
   GALERIA PAGE
   =================================== */

.gallery-section {
    padding: 5rem 0;
    background: white;
}

.gallery-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-counter {
    color: #0c4aa3;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-counter i {
    font-size: 1.3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-item img.lazy-image {
    opacity: 0;
}

.gallery-item img.loaded {
    opacity: 1;
}

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

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

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

.gallery-info {
    background: #e7f3ff;
    border-left: 4px solid #0c4aa3;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gallery-info i {
    color: #0c4aa3;
    font-size: 1.5rem;
}

.gallery-info p {
    color: #495057;
}

.gallery-info a {
    color: #0c4aa3;
    font-weight: 600;
}

.loading-spinner,
.empty-gallery,
.error-gallery {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
    grid-column: 1 / -1;
}

.loading-spinner i {
    font-size: 3rem;
    color: #0c4aa3;
    margin-bottom: 1rem;
}

.empty-gallery i,
.error-gallery i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-gallery p.small {
    font-size: 0.9rem;
    color: #adb5bd;
    margin-top: 0.5rem;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
}

.lightbox-caption p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.lightbox-counter {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* ===================================
   CONTACTO PAGE
   =================================== */

.contacto-section {
    padding: 5rem 0;
    background: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-side h2 {
    color: #0c4aa3;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-info-side > p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-method:hover {
    border-color: #0c4aa3;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp .method-icon {
    background: #25d366;
}

.instagram .method-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.facebook .method-icon {
    background: #1877f2;
}

.location .method-icon {
    background: #0c4aa3;
}

.method-icon i {
    color: white;
    font-size: 1.8rem;
}

.method-content h3 {
    color: #0c4aa3;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.method-content p {
    color: #495057;
    margin-bottom: 0.3rem;
}

.method-label {
    color: #6c757d;
    font-size: 0.85rem;
}

.contact-form-side h2 {
    color: #0c4aa3;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0c4aa3;
    box-shadow: 0 0 0 3px rgba(12, 74, 163, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.submit-button {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(12, 74, 163, 0.3);
}

.success-message {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 2rem;
    display: none;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.success-message.show {
    display: flex;
}

.success-message i {
    color: #28a745;
    font-size: 2.5rem;
}

.success-message p {
    color: #155724;
    line-height: 1.6;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: #212529;
    color: #adb5bd;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.footer-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #0c4aa3;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #343a40;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #0c4aa3;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #343a40;
}

.footer-bottom p {
    color: #6c757d;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .biografia-section {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .planes-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .logros-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .main-title {
        font-size: 1.6rem;
    }
    
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}
/* ===================================
   WHATSAPP BUTTONS
   =================================== */

.whatsapp-button {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    margin-right: 0.5rem;
}

/* ===================================
   PLAN PRICING
   =================================== */

.plan-price {
    text-align: center;
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    margin: 1rem 0;
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c4aa3;
}

.plan-price .period {
    font-size: 1rem;
    color: #6c757d;
}

.plan-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

/* ===================================
   LOGIN PAGE
   =================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.login-logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.login-logo span {
    font-size: 1rem;
    opacity: 0.9;
}

.login-form {
    padding: 2.5rem 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.login-form label i {
    margin-right: 0.5rem;
    color: #0c4aa3;
}

.login-form input {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-form input:focus {
    outline: none;
    border-color: #0c4aa3;
    box-shadow: 0 0 0 3px rgba(12, 74, 163, 0.1);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 74, 163, 0.4);
}

.login-button i {
    margin-right: 0.5rem;
}

.login-error {
    background: #fff5f5;
    color: #e53e3e;
    padding: 0.8rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px solid #feb2b2;
}

.login-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.login-footer a {
    color: #0c4aa3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #2563eb;
}

.login-footer i {
    margin-right: 0.5rem;
}

/* ===================================
   ADMIN PANEL
   =================================== */

.admin-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.admin-header {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.admin-header i {
    margin-right: 0.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.btn-view-site,
.btn-logout {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

.btn-view-site {
    background: white;
    color: #0c4aa3;
}

.btn-view-site:hover {
    background: #f8f9fa;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-content {
    padding: 3rem 0;
}

.admin-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    color: #0c4aa3;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.admin-section h2 i {
    margin-right: 0.7rem;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-form .form-group {
    margin-bottom: 1rem;
}

.admin-form label {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: #0c4aa3;
    box-shadow: 0 0 0 3px rgba(12, 74, 163, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0c4aa3, #2563eb);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 74, 163, 0.4);
}

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

.btn-secondary:hover {
    background: #5a6268;
}

.noticias-lista {
    display: grid;
    gap: 1.5rem;
}

.noticia-card-admin {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.noticia-card-admin:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.noticia-card-admin img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.noticia-no-image {
    width: 120px;
    height: 80px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
}

.noticia-content-admin h3 {
    color: #212529;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.noticia-fecha {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.noticia-fecha i {
    margin-right: 0.3rem;
}

.noticia-texto-preview {
    color: #495057;
    line-height: 1.5;
}

.noticia-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.btn-edit,
.btn-delete {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-edit {
    background: #0c4aa3;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.loading,
.empty-state,
.error {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(150%);
    transition: transform 0.3s ease;
    z-index: 9999;
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
}

.toast.success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.toast.info {
    border-left: 4px solid #0c4aa3;
    color: #0c4aa3;
}

/* ===================================
   PUBLIC NEWS PAGE
   =================================== */

.noticias-section {
    padding: 4rem 0;
    background: white;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2.5rem;
}

.noticia-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.noticia-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.noticia-content {
    padding: 2rem;
}

.noticia-meta {
    margin-bottom: 1rem;
}

.noticia-date {
    color: #0c4aa3;
    font-weight: 600;
    font-size: 0.9rem;
}

.noticia-date i {
    margin-right: 0.5rem;
}

.noticia-card h2 {
    color: #212529;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.noticia-card p {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}

.loading-container {
    text-align: center;
    padding: 4rem;
    color: #0c4aa3;
}

.loading-container i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-noticias,
.error-noticias {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-noticias i,
.error-noticias i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-noticias h2,
.error-noticias h2 {
    color: #495057;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.empty-noticias p,
.error-noticias p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===================================
   RESPONSIVE FOR NEW FEATURES
   =================================== */

@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .noticia-card-admin {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .noticia-card-admin img,
    .noticia-no-image {
        width: 100%;
        height: 200px;
    }
    
    .noticia-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .noticias-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-content img {
        max-height: 70vh;
    }
    
    .lightbox-caption {
        font-size: 0.85rem;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .login-box {
        margin: 0;
    }
    
    .admin-section {
        padding: 1.5rem 1rem;
    }
    
    .noticia-card h2 {
        font-size: 1.4rem;
    }
}
