/* ===================================
   House Comparator - Custom Styles
   ================================== */

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #38B4FC 0%, #2E8BC0 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header Section */
.header-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    position: relative;
}

.hero-section .content-column {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.content-column {
    position: relative;
    z-index: 2;
}

.hero-heading {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-description {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-description p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-description strong {
    color: #FFD700;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-button {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFA500 0%, #FFD700 100%);
}

/* Hero Image Section */
.hero-image-section {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Larger image for desktop and tablets */
@media (min-width: 768px) {
    .hero-image-container {
        max-width: 600px;
    }
}

.hero-image-inline {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-image-inline {
    transform: scale(1.02);
}

/* Image Column */
.image-column {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 180, 252, 0.9) 0%, rgba(46, 139, 192, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.image-container:hover .hero-image {
    transform: scale(1.05);
}

.overlay-content {
    text-align: center;
    padding: 2rem;
}

/* Pricing Section */
.pricing-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin: 4rem 0;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 252, 204, 1) 100%);
    border: 2px solid #FFD700;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.plan-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: #38B4FC;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
}

.price-amount {
    font-size: 4rem;
    font-weight: 900;
    color: #38B4FC;
    margin: 0 0.5rem;
}

.price-period {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
}

.plan-description {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.feature-row:hover {
    background: rgba(56, 180, 252, 0.05);
    border-radius: 10px;
    padding-left: 0.5rem;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-icon {
    color: #38B4FC;
    font-size: 1.1rem;
    width: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-row span {
    flex: 1;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-row strong {
    color: #38B4FC;
    font-weight: 700;
}

.check-icon {
    color: #22c55e;
    font-size: 1.2rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.plan-button {
    width: 100%;
    background: linear-gradient(45deg, #38B4FC 0%, #2E8BC0 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(56, 180, 252, 0.3);
}

.plan-button:hover {
    background: linear-gradient(45deg, #2E8BC0 0%, #38B4FC 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 180, 252, 0.4);
}

.pricing-card.featured .plan-button {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.pricing-card.featured .plan-button:hover {
    background: linear-gradient(45deg, #FFA500 0%, #FFD700 100%);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
}

/* Comparison Table Section */
.comparison-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    margin: 4rem 0;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-section-celeste {
    background: #38B4FC;
    margin: 4rem 0;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(56, 180, 252, 0.3);
}

.section-title-comparison {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.planes-yellow {
    color: #FFD700;
}

.comparados-white {
    color: white;
}

.comparison-table-container {
    overflow-x: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: white;
    margin: 2rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    width: 25%;
}

.feature-header {
    width: 30%;
}

.plan-header {
    width: 23.33%;
}

.price-row td {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.feature-name {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
}

.plan-header {
    background: #38B4FC;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-header.caracteristica {
    background: #38B4FC;
    color: white;
}
.plan-header.standard {
    background: #e5e7eb;
    color: #374151;
}

.plan-header.professional {
    background: #38B4FC;
    color: white;
}

.plan-header.enterprise {
    background: #1e40af;
    color: white;
}

.feature-name {
    background: #f8f9fa;
    color: #333;
    font-weight: 500;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
}

.checkmark {
    color: #22c55e;
    font-weight: bold;
    font-size: 1.2rem;
    background: #f0fdf4;
}

.plan-value {
    color: #38B4FC;
    font-weight: 600;
    background: #f8fafc;
}

.price-row {
    border-top: 2px solid #38B4FC;
}

.price-label {
    background: #38B4FC !important;
    color: white !important;
    font-weight: 700;
    text-transform: uppercase;
}

.price-row td.feature-name {
    text-align: left !important;
}

.price-row td.standard-price,
.price-row td.professional-price,
.price-row td.enterprise-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}

.title-price {
    background-color: #38B4FC !important;
}

.standard-price {
    background-color: #6b7280 !important;
}

.professional-price {
    background-color: #38B4FC !important;
}

.enterprise-price {
    background-color: #1e40af !important;
}

.professional-price-celeste {
    background: #38B4FC;
    color: white;
}

.enterprise-price-celeste {
    background: #38B4FC;
    color: white;
}

/* Responsive Design for Comparison Table */
@media (max-width: 768px) {
    .section-title-comparison {
        font-size: 2.5rem;
    }
    
    .comparison-table-container {
        margin: 0 -1rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .feature-name {
        min-width: 200px;
    }
    
    .plan-header {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .section-title-comparison {
        font-size: 2rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .feature-name {
        min-width: 180px;
    }
    
    .plan-header {
        min-width: 100px;
        font-size: 0.9rem;
    }
}

/* Footer Section */
.footer-section {
    background: #38B6FF;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-description {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .hero-heading {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        padding: 1rem;
    }
    
    .hero-description p {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 0.8rem 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-text {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blue-button {
    background-color: #3483FA;
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s;
    font-family: Arial, sans-serif;
    }

.blue-button:hover {
    background-color: #2a68c8;
    }