/* Salida con Panas - Modern Motorcycle Event Management System */
:root {
    --primary-color: #8B0000;
    --secondary-color: #2c3e50;
    --accent-color: #8B0000;
    --success-color: #8B0000;
    --warning-color: #8B0000;
    --light-bg: #F8F8FF;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: #F8F8FF;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* .logo::before {
    content: "🏍️";
    margin-right: 0.5rem;
    font-size: 2rem;
} */

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

/* Mobile Navigation */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-text);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-active-link {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.nav-links a.nav-active {
    background: var(--primary-color);
    color: var(--white);
}

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

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

.card-header {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0.25rem;
}

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

.btn-primary:hover {
    background: #A52A2A;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #000000;
    color: var(--white);
}

.btn-secondary:hover {
    background: #333333;
}

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

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

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

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

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Event Cards */
.event-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

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

.event-image {
    width: 100%;
    max-width: 400px; /* desktop/tablet cap */
    aspect-ratio: 1 / 1; /* 400x400 square */
    object-fit: contain; /* show full image */
    background: var(--light-bg); /* letterbox area */
    display: block;
    margin: 0 auto; /* center in card */
}

/* Mobile: use full card width, keep square and full image */
@media (max-width: 600px) {
    .event-image {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        margin: 0; /* align with card edges */
    }
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.event-destination {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-detail {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

.event-detail::before {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.event-date::before { content: "📅"; }
.event-time::before { content: "🕐"; }
.event-cost::before { content: "💰"; }
.event-meeting::before { content: "📍"; }

.telepase-reminder {
    background: linear-gradient(45deg, #8B0000, #A52A2A);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
}

.telepase-reminder::before {
    content: "⚠️ ";
    font-size: 1.2rem;
}

/* Profile Section */
.profile-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-right: 1.5rem;
}

.profile-info h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--light-text);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: #F8F8FF;
    color: #8B0000;
    border-color: var(--success-color);
}

.alert-error {
    background: #F8F8FF;
    color: #8B0000;
    border-color: var(--warning-color);
}

.alert-info {
    background: #F8F8FF;
    color: #8B0000;
    border-color: #8B0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.nav-active {
        max-height: 400px;
    }
    
    .nav-links li {
        border-bottom: 1px solid var(--light-bg);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        text-align: center;
    }
    
    .container {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .event-details {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25d366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.whatsapp-btn::before {
    content: "📱";
    font-size: 1.2rem;
}

/* Weather Widget Styles */
.weather-widget {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.weather-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.weather-content {
    position: relative;
    z-index: 1;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.weather-title {
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-location {
    font-size: 0.9rem;
    opacity: 0.9;
}

.weather-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.weather-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.weather-temp {
    text-align: center;
}

.weather-temp-main {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.weather-temp-feels {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.weather-description {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.weather-detail {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.weather-detail-label {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-detail-value {
    font-size: 0.9rem;
    font-weight: bold;
}

.weather-conditions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.weather-conditions-title {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.conditions-good {
    color: #00b894;
}

.conditions-warning {
    color: #fdcb6e;
}

.conditions-bad {
    color: #e84393;
}

.weather-warnings {
    list-style: none;
    padding: 0;
}

.weather-warnings li {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.weather-warnings li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
}

.weather-forecast {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.forecast-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    text-align: center;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.forecast-day {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.forecast-day-name {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.forecast-icon {
    width: 30px;
    height: 30px;
    margin: 0.25rem auto;
}

.forecast-temps {
    font-size: 0.75rem;
    font-weight: bold;
}

.forecast-temp-max {
    display: block;
}

.forecast-temp-min {
    opacity: 0.7;
    font-weight: normal;
}

.weather-error {
    background: linear-gradient(135deg, #e17055, #d63031);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.weather-loading {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.weather-loading .loading {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
}

/* Event Weather Widget - Ultra compact design */
.event-card .weather-widget {
    margin: 0.75rem 0;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
    padding: 0.75rem;
}

.weather-compact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.weather-day-compact {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.weather-day-title {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.weather-temp-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.weather-icon-small {
    width: 25px;
    height: 25px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.weather-temp-main-compact {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.weather-temp-range {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.weather-description-compact {
    font-size: 0.65rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
    line-height: 1.1;
}

.weather-details-compact {
    display: flex;
    justify-content: space-between;
    gap: 0.2rem;
    font-size: 0.6rem;
}

.weather-detail-compact {
    flex: 1;
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.weather-detail-compact-label {
    display: block;
    font-size: 0.55rem;
    opacity: 0.7;
    margin-bottom: 0.1rem;
}

.weather-detail-compact-value {
    font-weight: bold;
    font-size: 0.6rem;
}

.weather-conditions-compact {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.4rem;
    text-align: center;
}

.weather-conditions-title-compact {
    font-size: 0.65rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.weather-warnings-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weather-warnings-compact li {
    font-size: 0.6rem;
    margin-bottom: 0.1rem;
    opacity: 0.9;
}

/* Header compact */
.weather-header-compact {
    text-align: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.weather-title-compact {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.weather-location-compact {
    font-size: 0.65rem;
    opacity: 0.8;
}

/* Responsive Weather Widget */
@media (max-width: 768px) {
    .weather-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }
    
    .weather-description {
        text-align: center;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Compact design for tablets */
    .event-card .weather-widget {
        margin: 0.75rem 0;
        padding: 0.75rem;
    }
    
    .weather-compact-grid {
        gap: 0.5rem;
    }
    
    .weather-day-compact {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .weather-details {
        grid-template-columns: 1fr;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ultra compact for mobile */
    .event-card .weather-widget {
        margin: 0.5rem 0;
        padding: 0.5rem;
    }
    
    .weather-compact-grid {
        gap: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .weather-day-compact {
        padding: 0.3rem;
    }
    
    .weather-temp-main-compact {
        font-size: 1rem;
    }
    
    .weather-icon-small {
        width: 20px;
        height: 20px;
    }
    
    .weather-title-compact {
        font-size: 0.7rem;
    }
    
    .weather-day-title {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .weather-temp-range {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .weather-description-compact {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    
    .weather-detail-compact-label {
        font-size: 0.5rem;
    }
    
    .weather-detail-compact-value {
        font-size: 0.55rem;
    }
    
    .weather-conditions-title-compact {
        font-size: 0.6rem;
    }
    
    .weather-warnings-compact li {
        font-size: 0.55rem;
    }
}
