/* ============================================
   Compu Amarilla - Collect Memories
   Nuevo branding: Verde Agua + Amarillo
   ============================================ */

:root {
    --ca-teal: #6B9C96;
    --ca-teal-light: #8BB3AD;
    --ca-teal-dark: #4A7870;
    --ca-yellow: #FFD23F;
    --ca-yellow-dark: #E5BE35;
    --ca-light-blue: #B8D4D1;
    --ca-white: #FFFFFF;
    --ca-gray: #F8F9FA;
    --ca-text: #2C3E50;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ca-text);
    line-height: 1.6;
}

/* ========== Hero Section ========== */
.ca-hero {
    background: linear-gradient(135deg, var(--ca-teal) 0%, var(--ca-teal-light) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ca-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--ca-yellow);
    opacity: 0.1;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.ca-hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 40px 20px;
}

.ca-logo-hero {
    max-width: 400px;
    width: 90%;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
    animation: fadeInDown 1s ease-out;
}

.ca-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ca-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.ca-hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--ca-light-blue);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.ca-btn-primary {
    background: var(--ca-yellow);
    color: var(--ca-teal-dark);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 210, 63, 0.4);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.ca-btn-primary:hover {
    background: var(--ca-yellow-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 210, 63, 0.6);
}

/* ========== Promo Slider ========== */
.ca-promo-section {
    padding: 80px 0;
    background: var(--ca-gray);
}

.ca-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ca-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.ca-section-title h2 {
    font-size: 2.5rem;
    color: var(--ca-teal);
    margin-bottom: 15px;
}

.ca-section-title p {
    font-size: 1.2rem;
    color: var(--ca-text);
}

.ca-promo-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ca-promo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ca-promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(107, 156, 150, 0.3);
}

.ca-promo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.ca-promo-info {
    padding: 20px;
}

.ca-promo-info h3 {
    color: var(--ca-teal);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.ca-promo-link {
    color: var(--ca-yellow-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.ca-promo-link:hover {
    gap: 12px;
}

/* ========== Destinos Grid ========== */
.ca-destinos-section {
    padding: 80px 0;
    background: white;
}

.ca-destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ca-destino-card {
    background: var(--ca-gray);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.ca-destino-card:hover {
    background: var(--ca-teal);
    border-color: var(--ca-yellow);
    transform: scale(1.05);
}

.ca-destino-card:hover h3,
.ca-destino-card:hover p {
    color: white;
}

.ca-destino-icon {
    font-size: 3rem;
    color: var(--ca-yellow);
    margin-bottom: 20px;
}

.ca-destino-card h3 {
    font-size: 1.5rem;
    color: var(--ca-teal);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.ca-destino-card p {
    color: var(--ca-text);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.ca-btn-destino {
    background: var(--ca-yellow);
    color: var(--ca-teal-dark);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.ca-btn-destino:hover {
    background: var(--ca-yellow-dark);
    transform: translateY(-2px);
}

/* ========== Features Section ========== */
.ca-features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--ca-teal-light) 0%, var(--ca-teal) 100%);
    color: white;
}

.ca-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.ca-feature {
    text-align: center;
}

.ca-feature-icon {
    font-size: 3.5rem;
    color: var(--ca-yellow);
    margin-bottom: 20px;
}

.ca-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ca-feature p {
    color: var(--ca-light-blue);
}

/* ========== Footer ========== */
.ca-footer {
    background: var(--ca-teal-dark);
    color: white;
    padding: 50px 0 20px;
}

.ca-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.ca-footer-logo {
    max-width: 250px;
    margin-bottom: 20px;
}

.ca-footer h4 {
    color: var(--ca-yellow);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.ca-footer a {
    color: var(--ca-light-blue);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.ca-footer a:hover {
    color: var(--ca-yellow);
}

.ca-footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--ca-light-blue);
}

/* ========== Animations ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .ca-hero h1 {
        font-size: 2.5rem;
    }
    
    .ca-hero p {
        font-size: 1.2rem;
    }
    
    .ca-logo-hero {
        max-width: 300px;
    }
    
    .ca-section-title h2 {
        font-size: 2rem;
    }
    
    .ca-promo-slider,
    .ca-destinos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .ca-hero {
        min-height: 80vh;
    }
    
    .ca-hero h1 {
        font-size: 2rem;
    }
    
    .ca-btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ========== Página de Detalle de Promo ========== */
.ca-breadcrumb {
    background: var(--ca-gray);
    padding: 15px 0;
    font-size: 0.9rem;
}

.ca-breadcrumb a {
    color: var(--ca-teal);
    text-decoration: none;
    transition: color 0.3s;
}

.ca-breadcrumb a:hover {
    color: var(--ca-yellow-dark);
}

.ca-breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.ca-breadcrumb .current {
    color: var(--ca-text);
}

.ca-promo-header {
    padding: 60px 0;
    background: white;
}

.ca-promo-header-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.ca-promo-title {
    font-size: 2.5rem;
    color: var(--ca-teal);
    margin-bottom: 20px;
    font-weight: 700;
}

.ca-promo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.ca-meta-item {
    background: var(--ca-gray);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: var(--ca-text);
}

.ca-meta-item i {
    color: var(--ca-teal);
    margin-right: 8px;
}

.ca-meta-small {
    font-size: 0.9rem;
}

.ca-promo-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.ca-btn-whatsapp {
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.ca-btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.ca-btn-secondary {
    background: var(--ca-gray);
    color: var(--ca-teal);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ca-btn-secondary:hover {
    background: var(--ca-teal);
    color: white;
}

.ca-promo-content {
    padding: 40px 0 80px;
    background: var(--ca-gray);
}

.ca-container-full {
    max-width: 100%;
    padding: 0;
}

.ca-iframe-wrapper {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 0 20px;
}

.ca-mega-iframe {
    width: 100%;
    min-height: 1200px;
    border: none;
}

.ca-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.ca-whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 2px 2px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive para detalle de promo */
@media (max-width: 768px) {
    .ca-promo-title {
        font-size: 1.8rem;
    }
    
    .ca-promo-actions {
        flex-direction: column;
    }
    
    .ca-btn-whatsapp,
    .ca-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .ca-mega-iframe {
        min-height: 800px;
    }
    
    .ca-whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mejoras para página de detalle */
.ca-promo-description {
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

.ca-meta-price {
    background: var(--ca-yellow);
    color: var(--ca-teal-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.ca-promo-info-section {
    padding: 60px 0;
    background: white;
}

.ca-section-subtitle {
    font-size: 2rem;
    color: var(--ca-teal);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.ca-info-box {
    background: var(--ca-gray);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.ca-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ca-info-icon {
    font-size: 3rem;
    color: var(--ca-yellow);
    margin-bottom: 15px;
}

.ca-info-box h3 {
    font-size: 1.3rem;
    color: var(--ca-teal);
    margin-bottom: 10px;
    font-weight: 700;
}

.ca-info-box p {
    color: var(--ca-text);
    margin: 0;
}

.ca-iframe-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.ca-iframe-notice {
    background: var(--ca-teal);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.ca-iframe-notice i {
    margin-right: 10px;
}

.ca-iframe-fallback {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
}

.ca-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--ca-teal) 0%, var(--ca-teal-light) 100%);
    color: white;
}

.ca-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--ca-yellow);
}

.ca-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--ca-light-blue);
}

.ca-btn-large {
    font-size: 1.3rem;
    padding: 18px 40px;
}

/* Fix para container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4, .col-md-5, .col-md-7 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333%;
    }
    .col-md-5 {
        width: 41.666%;
    }
    .col-md-7 {
        width: 58.333%;
    }
}

.align-items-center {
    align-items: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-md-0 {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .mb-md-0 {
        margin-bottom: 1.5rem !important;
    }
}

.text-center {
    text-align: center;
}

/* Fix para iframe más pequeño y con scroll */
.ca-mega-iframe {
    width: 100%;
    min-height: 800px;
    max-height: 1000px;
    border: 2px solid var(--ca-gray);
    border-radius: 10px;
}
