/**
 * Aurora de Chile Choroico - Porto-Style Components
 * Additional Porto Church-inspired components and styles
 *
 * @version 1.0.0
 */

/* ==========================================================================
   Porto-Style Variables & Base Overrides
   ========================================================================== */
:root {
    /* Porto Church Color Palette */
    --porto-color-primary: #e36159;
    --porto-color-primary-hover: #c94940;
    --porto-color-secondary: #2c3e50;
    --porto-color-tertiary: #8fa6b5;
    --porto-color-quaternary: #f4f4f4;

    /* Additional Porto Colors */
    --porto-color-dark: #212529;
    --porto-color-light: #f8f9fa;
    --porto-border-radius: 4px;
    --porto-border-radius-lg: 8px;

    /* Porto Typography */
    --porto-heading-font: 'Playfair Display', Georgia, serif;
    --porto-body-font: 'Poppins', 'Open Sans', Arial, sans-serif;
}

/* ==========================================================================
   Porto-Style Feature Boxes
   ========================================================================== */
.feature-box {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.feature-box .feature-box-icon {
    display: inline-block;
    font-size: 48px;
    line-height: 1;
    color: var(--porto-color-primary);
    margin-bottom: 20px;
}

.feature-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-box p {
    color: #777;
    margin-bottom: 0;
}

/* Feature Box Styles */
.feature-box-style-2 {
    text-align: left;
}

.feature-box-style-2 .feature-box-icon {
    float: left;
    margin-right: 20px;
    font-size: 36px;
}

.feature-box-style-3 {
    background: #fff;
    border-radius: var(--porto-border-radius-lg);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-box-style-3:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-box-style-4 {
    padding: 40px 30px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #eee;
    border-radius: var(--porto-border-radius-lg);
}

/* ==========================================================================
   Porto-Style Info Boxes
   ========================================================================== */
.info-box {
    position: relative;
    padding: 30px;
    background: #fff;
    border-radius: var(--porto-border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-box-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--porto-color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-box-icon i {
    font-size: 24px;
    color: #fff;
}

.info-box-content {
    padding-left: 80px;
}

.info-box h4 {
    margin-bottom: 10px;
}

/* ==========================================================================
   Porto-Style Call to Action
   ========================================================================== */
.call-to-action {
    background: var(--porto-color-primary);
    color: #fff;
    padding: 40px;
    border-radius: var(--porto-border-radius-lg);
}

.call-to-action h3,
.call-to-action h4 {
    color: #fff;
}

.call-to-action p {
    color: rgba(255, 255, 255, 0.9);
}

.call-to-action .btn {
    background: #fff;
    color: var(--porto-color-primary);
    border-color: #fff;
}

.call-to-action .btn:hover {
    background: transparent;
    color: #fff;
}

/* CTA with Background */
.call-to-action-bg {
    background-size: cover;
    background-position: center;
    position: relative;
}

.call-to-action-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.85);
    border-radius: var(--porto-border-radius-lg);
}

.call-to-action-bg > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Porto-Style Counters
   ========================================================================== */
.counter {
    text-align: center;
    padding: 30px;
}

.counter-number {
    font-family: var(--porto-heading-font);
    font-size: 48px;
    font-weight: 700;
    color: var(--porto-color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
}

/* Counter with Icon */
.counter-with-icon .counter-icon {
    font-size: 48px;
    color: var(--porto-color-primary);
    margin-bottom: 20px;
}

/* ==========================================================================
   Porto-Style Timeline
   ========================================================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #e0e0e0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 40px;
    padding-right: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--porto-color-primary);
    border-radius: 50%;
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -6px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: var(--porto-border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-date {
    font-size: 14px;
    color: var(--porto-color-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

/* ==========================================================================
   Porto-Style Team Members
   ========================================================================== */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--porto-border-radius-lg);
    margin-bottom: 20px;
}

.team-member-image img {
    width: 100%;
    transition: transform 0.4s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(227, 97, 89, 0.9);
    padding: 15px;
    transition: bottom 0.3s ease;
}

.team-member:hover .team-member-social {
    bottom: 0;
}

.team-member-social a {
    color: #fff;
    margin: 0 10px;
    font-size: 18px;
}

.team-member-social a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member .role {
    font-size: 14px;
    color: var(--porto-color-primary);
}

/* ==========================================================================
   Porto-Style Pricing Tables
   ========================================================================== */
.pricing-table {
    background: #fff;
    border-radius: var(--porto-border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pricing-table:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.pricing-table.featured {
    background: var(--porto-color-primary);
    color: #fff;
    transform: scale(1.05);
}

.pricing-table.featured h4,
.pricing-table.featured .price {
    color: #fff;
}

.pricing-table h4 {
    font-size: 24px;
    margin-bottom: 20px;
}

.pricing-table .price {
    font-family: var(--porto-heading-font);
    font-size: 48px;
    font-weight: 700;
    color: var(--porto-color-primary);
    margin-bottom: 20px;
}

.pricing-table .price sup {
    font-size: 24px;
    top: -0.5em;
}

.pricing-table .price sub {
    font-size: 16px;
    color: #777;
}

.pricing-table ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.pricing-table ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.pricing-table.featured ul li {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Porto-Style Accordion & Tabs
   ========================================================================== */
.porto-accordion .accordion-item {
    border: none;
    border-radius: var(--porto-border-radius-lg) !important;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.porto-accordion .accordion-button {
    font-weight: 600;
    background: #fff;
    box-shadow: none;
}

.porto-accordion .accordion-button:not(.collapsed) {
    background: var(--porto-color-primary);
    color: #fff;
}

.porto-accordion .accordion-button::after {
    background: none;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f078';
}

.porto-accordion .accordion-button:not(.collapsed)::after {
    content: '\f077';
    color: #fff;
}

/* Porto Tabs */
.porto-tabs .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
}

.porto-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 600;
    color: #777;
    padding: 15px 25px;
}

.porto-tabs .nav-link:hover {
    color: var(--porto-color-primary);
    border-color: transparent;
}

.porto-tabs .nav-link.active {
    color: var(--porto-color-primary);
    border-color: var(--porto-color-primary);
    background: transparent;
}

/* ==========================================================================
   Porto-Style Process Steps
   ========================================================================== */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #e0e0e0;
}

.process-step {
    text-align: center;
    position: relative;
    flex: 1;
    padding: 0 15px;
}

.process-step-number {
    width: 80px;
    height: 80px;
    background: var(--porto-color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: #777;
}

/* ==========================================================================
   Porto-Style Blockquotes
   ========================================================================== */
.porto-blockquote {
    position: relative;
    padding: 30px 30px 30px 80px;
    background: #f8f9fa;
    border-left: 4px solid var(--porto-color-primary);
    border-radius: 0 var(--porto-border-radius-lg) var(--porto-border-radius-lg) 0;
}

.porto-blockquote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 32px;
    color: var(--porto-color-primary);
    opacity: 0.5;
}

.porto-blockquote p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 15px;
}

.porto-blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--porto-color-secondary);
}

/* ==========================================================================
   Porto-Style Dividers
   ========================================================================== */
.divider {
    position: relative;
    text-align: center;
    margin: 40px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    position: relative;
    background: #fff;
    padding: 0 20px;
    font-size: 14px;
    color: #777;
}

.divider-icon span {
    font-size: 24px;
    color: var(--porto-color-primary);
}

/* Short Divider */
.divider-short {
    margin: 20px auto;
    width: 60px;
    height: 3px;
    background: var(--porto-color-primary);
}

.divider-short.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Porto-Style Overlays
   ========================================================================== */
.overlay-container {
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.overlay-container:hover .overlay {
    opacity: 1;
}

.overlay a {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--porto-color-primary);
    font-size: 20px;
    margin: 0 5px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.overlay-container:hover .overlay a {
    transform: translateY(0);
}

.overlay a:hover {
    background: var(--porto-color-primary);
    color: #fff;
}

/* ==========================================================================
   Porto-Style Badges & Labels
   ========================================================================== */
.porto-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.porto-badge-primary {
    background: var(--porto-color-primary);
    color: #fff;
}

.porto-badge-secondary {
    background: var(--porto-color-secondary);
    color: #fff;
}

.porto-badge-outline {
    background: transparent;
    border: 1px solid var(--porto-color-primary);
    color: var(--porto-color-primary);
}

/* ==========================================================================
   Porto-Style Alerts
   ========================================================================== */
.porto-alert {
    padding: 20px 25px;
    border-radius: var(--porto-border-radius-lg);
    border-left: 4px solid;
}

.porto-alert-primary {
    background: rgba(227, 97, 89, 0.1);
    border-color: var(--porto-color-primary);
    color: var(--porto-color-primary);
}

.porto-alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #3498db;
}

.porto-alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-color: #27ae60;
    color: #27ae60;
}

.porto-alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: #f39c12;
    color: #f39c12;
}

/* ==========================================================================
   Porto-Style Loading Spinner
   ========================================================================== */
.porto-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--porto-color-primary);
    border-radius: 50%;
    animation: porto-spin 0.8s linear infinite;
}

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

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 14px;
        right: auto;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .feature-box-style-2 .feature-box-icon {
        float: none;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .info-box {
        padding-top: 100px;
    }

    .info-box-icon {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .info-box-content {
        padding-left: 0;
        text-align: center;
    }

    .pricing-table.featured {
        transform: scale(1);
    }

    .counter-number {
        font-size: 36px;
    }
}
