﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

.pa-container {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100% !important;
    max-width: 98% !important;
    margin: 0px auto !important;
    background-color: #f0f7ff;
    padding: 40px 20px;
}

.pa-tabs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    width: 100% !important;
    max-width: 100% !important;
    height: 50px;
    background: white;
    margin: 0 auto 0px auto !important;
    position: relative;
    overflow: hidden;
}

.pa-tabs-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 0px;
    width: 100%;
    max-width: 700px;
    height: 49px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    z-index: 1;
}

.pa-tabs-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #B3B3B3;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.pa-tab {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 50%;
    max-width: 350px;
    height: 49px;
    cursor: pointer;
    flex: none;
    order: 0;
    flex-grow: 1;

    /* Texto tab */
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #373737;
    transition: all 0.3s ease;
}

.pa-tab.active {
    font-weight: 700;
    color: #0F69C4;
}

/* Indicador azul (bg en figma) */
.pa-tab.active::after {
    content: '';
    position: absolute;
    height: 4px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: #0F69C4;
}

.pa-tab-content {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-block-start: 0 !important;
}

.pa-tab-content.active {
    display: block !important;
}

/* Boton Icono - display: none según figma */
.pa-tab-icon {
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px;
    gap: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.pa-content-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 10px auto !important;
    max-width: 90%;
    width: calc(100% - 40px) !important; /* Asegura espacio en móviles */
}

.pa-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.pa-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.pa-form-group {
    margin-bottom: 25px;
}

.pa-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.pa-select {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pa-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 15px;
}

.pa-blue-header {
    background-color: #1e73be;
    color: white;
    padding: 10px 15px;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
}

.pa-grid-forecast {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #f9f9f9;
    border: 1px solid #eee;
    border-top: none;
}

.pa-forecast-item {
    padding: 20px;
    text-align: center;
    border-right: 1px solid #eee;
}

.pa-forecast-item:last-child {
    border-right: none;
}

.pa-forecast-item .zone {
    font-weight: bold;
    display: block;
}

.pa-forecast-item .desc {
    font-size: 13px;
    color: #777;
    display: block;
}

.pa-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.pa-table th {
    background-color: #1e73be;
    color: white;
    text-align: left;
    padding: 12px;
}

.pa-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.pa-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 15px;
    font-size: 13px;
}

.pa-pagination-controls {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.pa-page-link {
    padding: 3px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #1e73be;
    border-radius: 3px;
    transition: all 0.2s;
}

.pa-page-link:hover {
    background: #f0f0f0;
}

.pa-page-link.active {
    background: #1e73be;
    color: white;
    border-color: #1e73be;
    cursor: default;
}

.pa-pagination select {
    padding: 2px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: white;
}

.pa-forecast-days {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pa-day-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.pa-day-grid {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    flex-wrap: wrap;
}

.pa-day-grid .pa-forecast-item {
    flex: 1;
    min-width: 100px;
}


.pa-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #0F69C4;
    background: white;
    color: #0F69C4;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pa-nav-btn.prev {
    left: 10px;
}

.pa-nav-btn.next {
    right: 10px;
}

.pa-nav-btn:hover:not(:disabled) {
    background: #0F69C4;
    color: white;
}

.pa-nav-btn:disabled {
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}


.pa-footer-info {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 20px;
}

.pa-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    display: inline-block;
    object-fit: contain;
}

/* Nuevos estilos para el Tab 2 (Layout extendido) */
.pa-layout-container {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 600px;
    max-width: 90%;
    width: calc(100% - 40px) !important;
}

.pa-sidebar {
    width: 200px;
    border-right: 1px solid #E0E0E0;
    padding: 20px 0;
    flex-shrink: 0;
}

.pa-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pa-sidebar li {
    padding: 15px 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    border-right: 3px solid transparent;
    transition: all 0.2s;
    text-align: right;
    line-height: 1.2;
}

.pa-sidebar li:hover {
    background: #f8f9fa;
    color: #0F69C4;
}

.pa-sidebar li.active {
    color: #0F69C4;
    border-right: 3px solid #0F69C4;
    font-weight: 500;
}

.pa-main-content {
    flex-grow: 1;
    padding: 40px;
    background: white;
}

.pa-content-card-extended {
    max-width: 800px;
    margin: 0 auto;
}

.pa-main-title {
    font-size: 32px;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px 0;
}

.pa-main-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}


.pa-map-section {
    text-align: center;
}

.pa-map-container-placeholder {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    position: relative;
}

#pa-map-image {
    max-width: 100%;
    height: auto;
    display: block;
}
