/* Reset and Base Styles */
:root {
    --bg-color: #fbfbfd;
    --bg-color-alt: #ffffff;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent-color: #0066cc; /* Sophisticated Blue */
    --accent-color-hover: #004499;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Status Colors - Subtle */
    --status-high-bg: #fff5f5;
    --status-high-text: #d93025; /* Softer red/orange */
    --status-medium-bg: #fff8e6;
    --status-medium-text: #b06000;
    --status-low-bg: #e6f4ea;
    --status-low-text: #137333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.bg-light {
    background-color: var(--bg-color-alt);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 980px; /* Pill shape */
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

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

.btn-primary:active {
    transform: scale(0.98);
}

.hero-carousel .btn-primary {
    background-color: #e65100;
    color: white;
    border: 0.1mm solid black;
}

.hero-carousel .btn-primary:hover {
    background-color: #bf360c;
}

.btn-secondary {
    display: inline-block;
    background-color: rgba(0, 102, 204, 0.08);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(0, 102, 204, 0.15);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.nav-highlight {
    color: #e65100; /* Deep orange */
    font-weight: 700;
}

.nav-links a.nav-highlight:hover {
    color: #bf360c;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--text-muted);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Stats Container (Apple Health Style) */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background-color: var(--bg-color-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-soft);
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Interactive Panels Section */
.section-panels {
    padding: 100px 0 0 0;
    background-color: var(--bg-color-alt);
    border-top: 1px solid var(--border-color);
}

.interactive-panels {
    display: flex;
    width: 100%;
    min-height: 650px;
}

.i-panel {
    flex: 1;
    position: relative;
    padding: 60px 40px;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid rgba(0,0,0,0.05);
}

.i-panel:last-child {
    border-right: none;
}

/* Background colors for panels */
.panel-high { background-color: #fdfaf9; }
.panel-high-alt { background-color: #fafbfa; }
.panel-medium { background-color: #f9fbfd; }
.panel-low { background-color: #fcfbfa; }

/* Interactive Hover state */
.i-panel:hover {
    flex: 1.35;
    background-color: #ffffff;
    box-shadow: 0 0 50px rgba(0,0,0,0.06);
    z-index: 10;
}

.panel-content {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    opacity: 0.75;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(15px);
}

.i-panel:hover .panel-content {
    opacity: 1;
    transform: translateY(0);
}

.panel-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0,0,0,0.03);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--text-main);
    transition: transform 0.4s ease;
}

.i-panel:hover .panel-icon {
    transform: scale(1.1);
}

.panel-icon svg {
    width: 32px;
    height: 32px;
}

.i-panel h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 16px 0 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.didactic-list {
    list-style: none;
    margin-bottom: 40px;
}

.didactic-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.didactic-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.panel-high .didactic-list li::before, .panel-high-alt .didactic-list li::before {
    background-color: var(--status-high-text);
}

.panel-medium .didactic-list li::before {
    background-color: var(--status-medium-text);
}

.btn-panel {
    display: inline-block;
    background-color: var(--text-main);
    color: white;
    padding: 16px 32px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.i-panel:hover .btn-panel {
    background-color: #e65100; /* Naranja en hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 81, 0, 0.2);
}

@media (max-width: 992px) {
    .interactive-panels {
        flex-direction: column;
        height: auto;
    }
    .i-panel {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 50px 30px;
    }
    .i-panel:hover {
        flex: 1; /* Disable expansion on mobile */
    }
    .panel-content {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Centers */
.centers-container {
    display: flex;
    justify-content: center;
}

.main-center {
    background-color: var(--bg-color-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-soft);
}

.center-badge {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 980px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.main-center h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.center-address {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.center-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 500;
}

/* Emergency Section */
.emergency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.emergency-card {
    background-color: var(--bg-color-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.emergency-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--status-high-bg);
    color: var(--status-high-text);
    border-radius: 50%;
    margin-bottom: 20px;
}

.bank-icon {
    background-color: rgba(0, 102, 204, 0.08);
    color: var(--accent-color);
}

.emergency-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.emergency-list {
    list-style: none;
    margin-top: 16px;
}

.emergency-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.emergency-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.emergency-list li strong {
    color: var(--text-main);
    display: block;
}

.emergency-list li span {
    color: var(--text-muted);
}

.emergency-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

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

/* Logistics */
.logistics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.logistics-form-container, .logistics-status {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-color-alt);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.logistics-status h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.status-list {
    list-style: none;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.status-item:last-child {
    border-bottom: none;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-delivered { background-color: var(--status-low-text); }
.dot-transit { background-color: var(--accent-color); }
.dot-pending { background-color: #fbbc04; }

.status-details {
    display: flex;
    flex-direction: column;
}

.status-id {
    font-weight: 600;
    font-size: 0.95rem;
}

.status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact / Directory */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-color-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 102, 204, 0.2);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 102, 204, 0.05);
    color: var(--accent-color);
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info {
    flex-grow: 1;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card:hover .contact-arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        position: relative; /* Prevent overlap with hero if needed, or keep fixed with adjusted padding */
    }
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 24px;
        gap: 12px;
    }
    .nav-links {
        display: flex;
        width: 100%;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Typography & Spacing */
    .hero {
        padding: 120px 0 60px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Layout */
    .stats-container {
        flex-direction: column;
        gap: 16px;
    }
    .logistics-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-card {
        padding: 16px;
    }
}

/* --- Hero Carousel Styles --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 580px; /* Height increased for a more spacious, premium feel */
    margin-top: 0; /* Let it go behind the fixed navbar on desktop */
    overflow: hidden;
    background-color: var(--bg-color);
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Offset top to prevent navbar overlap on desktop */
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* Dark overlay to make white text readable */
    z-index: 2;
}

.carousel-caption {
    position: relative;
    z-index: 3;
    max-width: 1000px; /* Base width aligns with .container when no card is shown */
    width: calc(100% - 40px);
    margin: 0 auto;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.carousel-caption.has-card {
    max-width: 900px; /* Slightly narrower for layout balance inside the card */
    padding: 40px 60px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.carousel-caption .hero-subtitle {
    margin-bottom: 28px;
}

/* Slide themes - Apply card styles ONLY when has-card is present */
/* Theme Light (White text on dark card overlay) */
.carousel-slide.theme-light .carousel-caption.has-card {
    background: rgba(0, 0, 0, 0.4); /* Translucent overlay */
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.carousel-slide.theme-light .hero-title {
    color: #ffffff;
}
.carousel-slide.theme-light .hero-title span {
    color: rgba(255, 255, 255, 0.75);
}
.carousel-slide.theme-light .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Theme Dark (Dark text on white card overlay) */
.carousel-slide.theme-dark .carousel-caption.has-card {
    background: rgba(251, 251, 253, 0.65); /* Translucent overlay */
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.carousel-slide.theme-dark .hero-title {
    color: var(--text-main);
}
.carousel-slide.theme-dark .hero-title span {
    color: var(--text-muted);
}
.carousel-slide.theme-dark .hero-subtitle {
    color: var(--text-muted);
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-control:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-50%) scale(1.05);
}

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

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-slide.theme-light ~ .carousel-indicators .carousel-indicator {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-indicator.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.carousel-slide.theme-light ~ .carousel-indicators .carousel-indicator.active {
    background: #ffffff;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 480px;
        margin-top: 0; /* Starts naturally below relative navbar on mobile */
    }
    .carousel-slide {
        padding-top: 20px; /* No fixed navbar on mobile, reduce padding */
    }
    .carousel-caption.has-card {
        padding: 24px 20px; /* Reduce padding inside the glass card for mobile */
        width: calc(100% - 20px);
    }
    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
}
