/* static/main/css/informacion.css */

/* Variables específicas para la página de información */
:root {
    --info-primary: #005D99;
    --info-secondary: #A3C947;
    --info-accent: #F7D038;
    --info-highlight: #009FD9;
    --info-dark: #1a202c;
    --info-light: #f7fafc;
    --info-text: #2d3748;
    --info-text-light: #718096;
    --info-border: #e2e8f0;
    --info-success: #48bb78;
    --info-warning: #ed8936;
    --info-error: #f56565;
    --info-shadow: 0 4px 6px rgba(0,0,0,0.07);
    --info-shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --info-shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --info-radius: 12px;
    --info-radius-lg: 16px;
    --info-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.info-hero {
    position: relative;
    background: linear-gradient(135deg, var(--info-primary) 0%, var(--info-highlight) 50%, var(--info-secondary) 100%);
    padding: 6rem 0 4rem;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.info-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" fill="white" opacity="0.1"><circle cx="30" cy="30" r="20" stroke="white" stroke-width="2" fill="none"/><circle cx="30" cy="30" r="5" fill="white"/></svg>') repeat;
    background-size: 120px 120px;
    animation: heroPattern 25s linear infinite;
}

@keyframes heroPattern {
    0% { background-position: 0 0; }
    100% { background-position: 120px 120px; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-decoration {
    width: 80px;
    height: 4px;
    background: var(--info-accent);
    margin: 0 auto;
    border-radius: 2px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Main Information Section */
.info-main-section {
    padding: 5rem 0;
    background: var(--info-light);
}

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

.info-card {
    background: white;
    border-radius: var(--info-radius-lg);
    overflow: hidden;
    box-shadow: var(--info-shadow);
    transition: var(--info-transition);
    border: 1px solid var(--info-border);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--info-shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--info-primary), var(--info-highlight));
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.card-icon i {
    font-size: 1.3rem;
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 2rem;
}

/* Info Rows */
.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--info-radius);
    background: rgba(0,93,153,0.03);
    transition: var(--info-transition);
}

.info-row:hover {
    background: rgba(0,93,153,0.08);
    transform: translateX(5px);
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--info-primary);
    min-width: 120px;
    flex-shrink: 0;
}

.info-label i {
    width: 16px;
    text-align: center;
    color: var(--info-highlight);
}

.info-value {
    color: var(--info-text);
    line-height: 1.5;
    font-weight: 500;
}

.contact-link {
    color: var(--info-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--info-transition);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--info-highlight);
    transform: translateX(3px);
}

.contact-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Authority Profile */
.authority-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0,93,153,0.05), rgba(163,201,71,0.05));
    border-radius: var(--info-radius);
    border: 2px solid rgba(0,93,153,0.1);
}

.authority-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--info-primary), var(--info-highlight));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.authority-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--info-dark);
    margin-bottom: 0.5rem;
}

.authority-title {
    color: var(--info-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.authority-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--info-text-light);
}

.meta-item i {
    color: var(--info-accent);
}

/* Communication Items */
.comm-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(163,201,71,0.05);
    border-radius: var(--info-radius);
    margin-bottom: 1rem;
    transition: var(--info-transition);
    border-left: 4px solid var(--info-secondary);
}

.comm-item:hover {
    background: rgba(163,201,71,0.1);
    transform: translateX(5px);
}

.comm-item:last-child {
    margin-bottom: 0;
}

.comm-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--info-secondary), var(--info-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comm-details h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--info-dark);
    margin-bottom: 0.5rem;
}

/* Quick Actions Section */
.quick-actions {
    padding: 5rem 0;
    background: white;
}

.actions-header {
    text-align: center;
    margin-bottom: 3rem;
}

.actions-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--info-dark);
    margin-bottom: 1rem;
}

.actions-header p {
    font-size: 1.1rem;
    color: var(--info-text-light);
    max-width: 500px;
    margin: 0 auto;
}

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

.action-card {
    background: white;
    padding: 2rem;
    border-radius: var(--info-radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--info-text);
    transition: var(--info-transition);
    border: 2px solid var(--info-border);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.action-card:nth-child(1) { animation-delay: 0.1s; }
.action-card:nth-child(2) { animation-delay: 0.2s; }
.action-card:nth-child(3) { animation-delay: 0.3s; }
.action-card:nth-child(4) { animation-delay: 0.4s; }

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--info-transition);
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--info-shadow-xl);
    border-color: var(--info-primary);
    color: var(--info-text);
}

.action-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--info-primary), var(--info-highlight));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
    transition: var(--info-transition);
}

.action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.action-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--info-dark);
}

.action-card p {
    color: var(--info-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.action-arrow {
    color: var(--info-primary);
    font-size: 1.2rem;
    transition: var(--info-transition);
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
    color: var(--info-highlight);
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background: var(--info-light);
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--info-dark);
    margin-bottom: 1rem;
}

.map-header p {
    font-size: 1.1rem;
    color: var(--info-text-light);
}

.map-container {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center; */

    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--info-radius-lg);
    box-shadow: var(--info-shadow-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.location-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--info-error), var(--info-warning));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.location-details h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--info-dark);
    margin-bottom: 0.5rem;
}

.location-details p {
    color: var(--info-text-light);
    margin-bottom: 0.5rem;
}

.location-actions {
    margin-top: 1rem;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--info-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--info-transition);
}

.location-btn:hover {
    background: var(--info-highlight);
    transform: translateY(-2px);
    box-shadow: var(--info-shadow);
}

.map-placeholder {
    background: white;
    padding: 4rem 2rem;
    border-radius: var(--info-radius-lg);
    text-align: center;
    border: 2px dashed var(--info-border);
    transition: var(--info-transition);
    cursor: pointer;
}

.map-placeholder:hover {
    border-color: var(--info-primary);
    background: rgba(0,93,153,0.02);
}

.map-icon {
    font-size: 4rem;
    color: var(--info-primary);
    margin-bottom: 1rem;
}

.map-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--info-dark);
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    color: var(--info-text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .actions-header h2,
    .map-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 991.98px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .authority-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .info-hero {
        padding: 4rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .info-main-section,
    .quick-actions,
    .map-section {
        padding: 3rem 0;
    }
    
    .actions-header h2,
    .map-header h2 {
        font-size: 1.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .info-label {
        min-width: auto;
        width: 100%;
    }
    
    .authority-profile {
        padding: 1.5rem;
    }
    
    .authority-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .location-card {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }
    
    .location-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .comm-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .comm-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .map-placeholder {
        padding: 3rem 1.5rem;
    }
    
    .map-icon {
        font-size: 3rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--info-light);
}

::-webkit-scrollbar-thumb {
    background: var(--info-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--info-highlight);
}

/* Print Styles */
@media print {
    .info-hero,
    .quick-actions,
    .map-section {
        display: none;
    }
    
    .info-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .card-header {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
}