/* Novedades Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #0B2B4E 0%, #2a5f70 100%);
    color: white;
    text-align: center;
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/peninsula.jpg') center/cover;
    opacity: 0.12;
    z-index: -1;
    transform: scale(1.1);
    animation: subtle-zoom 20s infinite alternate ease-in-out;
}

@keyframes subtle-zoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.page-header-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
}

.page-header-content::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
}

.page-header-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.page-header-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.page-header-content p {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
    color: rgba(255, 255, 255, 0.9);
}

/* Section Styles */
.info-section {
    padding: 80px 0;
    position: relative;
}

.info-section:nth-child(even) {
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    margin: 0 auto 0.8rem;
    color: var(--primary);
    font-size: 2.5rem;
    position: relative;
    width: 100%;
    display: block;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Tide Section Styles */
.tide-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.refresh-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.tide-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tide-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a4d68, #1a7490);
}

.tide-card.current-tide::before {
    background: linear-gradient(90deg, #ff6b35, #ff8c65);
}

.tide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.tide-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0a4d68, #1a7490);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.current-tide .tide-icon {
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
}

.tide-time {
    font-size: 2rem;
    font-weight: 700;
    color: #0a4d68;
    margin-bottom: 5px;
}

.tide-height {
    color: #64748b;
    font-weight: 500;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.table-responsive {
    overflow-x: auto;
}

.tide-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tide-table th {
    background: linear-gradient(135deg, #0a4d68, #1a7490);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.tide-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tide-table tr:hover {
    background: #f8fafc;
}

/* Fauna Section Styles */
.fauna-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.fauna-timeline {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.timeline-months {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.month {
    text-align: center;
    font-weight: 600;
    color: #64748b;
    padding: 10px 5px;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.month.active {
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
    color: white;
}

.fauna-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.fauna-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.fauna-item:hover {
    background: #f8fafc;
    transform: translateX(10px);
}

.fauna-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fauna-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.fauna-details h3 {
    color: #0a4d68;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.fauna-details p {
    color: #64748b;
    margin-bottom: 15px;
}

.probability-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.probability-bar span {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.fauna-timeline-bar {
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    position: relative;
    margin: 0 20px;
}

.whales-timeline::before {
    content: '';
    position: absolute;
    left: 41.67%; /* Junio */
    width: 58.33%; /* Junio a Diciembre */
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 10px;
}

.penguins-timeline::before {
    content: '';
    position: absolute;
    left: 75%; /* Septiembre */
    width: 25%; /* Sep-Dic */
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 10px;
}

.penguins-timeline::after {
    content: '';
    position: absolute;
    left: 0%; /* Enero */
    width: 25%; /* Ene-Mar */
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 10px;
}

.seals-timeline::before {
    content: '';
    position: absolute;
    left: 0%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
}

.orcas-timeline::before {
    content: '';
    position: absolute;
    left: 8.33%; /* Febrero */
    width: 25%; /* Feb-Abr */
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 10px;
}

.fauna-details-panel {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* Policies Section Styles */
.policies-calculator {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #374151;
}

.price-input {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.calculate-btn {
    background: linear-gradient(135deg, #0a4d68, #1a7490);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 77, 104, 0.3);
}

.refund-result {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #bbf7d0;
}

.result-card h4 {
    color: #059669;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.refund-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.refund-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(187, 247, 208, 0.5);
}

.refund-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.refund-amount {
    color: #059669;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.policy-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.policy-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.policy-card h3 {
    color: #0a4d68;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.policy-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.full-refund { background: #10b981; }
.partial-refund-75 { background: #f59e0b; }
.partial-refund-50 { background: #f97316; }
.no-refund { background: #ef4444; }

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.timeline-content strong {
    color: #374151;
    font-weight: 600;
}

.timeline-content span {
    color: #64748b;
    font-size: 0.9rem;
}

.weather-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-item i {
    color: #10b981;
    font-size: 1.2rem;
}

.group-info ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.group-info li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.group-info li:last-child {
    border-bottom: none;
}

.contact-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* Tide Chart Styles */
.tide-chart-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin: 2rem 0;
}

#tideChart {
    width: 100%;
    max-width: 800px;
    height: 300px;
    margin: 0 auto;
    display: block;
}

/* Cancellation Section Styles */
.cancellation-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.policy-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.policy-card:hover {
    transform: translateY(-5px);
}

.policy-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.policy-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.policy-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-notes {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}

.note-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.note-box h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.note-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.weather-note {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.weather-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.weather-content {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 80px;
        min-height: 50vh;
    }
    
    .page-header-content h1 {
        font-size: 3rem;
    }
    
    .page-header-content p {
        font-size: 1.2rem;
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .weather-note {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 80px 0 40px;
    }
    
    .info-section {
        padding: 60px 0;
    }
    
    .fauna-timeline,
    .policies-calculator,
    .policy-card {
        padding: 20px;
    }
    
    .timeline-months {
        grid-template-columns: repeat(4, 1fr);
    }
}
