/* ===========================================
   CLOUDSTACK PAGE SECTIONS - GLOBAL STYLES
   =========================================== */

/* Section Base */
.cs-section {
    padding: 80px 0;
    position: relative;
}
.cs-section-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
}
.cs-section-light {
    background: #f8fafc;
    color: #1e293b;
}
.cs-section-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: #ffffff;
}
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Section Headers */
.cs-section-header {
    text-align: center;
    margin-bottom: 60px;
}
.cs-section-header.text-left {
    text-align: left;
}
.cs-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.cs-section-dark .cs-section-badge {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}
.cs-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}
.cs-section-dark .cs-section-title,
.cs-section-gradient .cs-section-title {
    color: #ffffff;
}
.cs-section-light .cs-section-title {
    color: #0f172a;
}
.cs-section-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}
.cs-section-dark .cs-section-subtitle,
.cs-section-gradient .cs-section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}
.cs-section-light .cs-section-subtitle {
    color: rgba(15, 23, 42, 0.85);
}
.cs-section-gradient .cs-section-badge {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c4b5fd;
}

/* Feature Grid */
.cs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.cs-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px 30px;
    transition: all 0.4s ease;
}
.cs-section-light .cs-feature-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.cs-section-gradient .cs-feature-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.cs-feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}
.cs-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.cs-feature-icon svg {
    width: 28px;
    height: 28px;
    color: #6366f1;
}
.cs-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}
.cs-section-dark .cs-feature-title,
.cs-section-gradient .cs-feature-title {
    color: #ffffff;
}
.cs-section-light .cs-feature-title {
    color: #0f172a;
}
.cs-feature-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
.cs-section-dark .cs-feature-text,
.cs-section-gradient .cs-feature-text {
    color: rgba(255, 255, 255, 0.8);
}
.cs-section-light .cs-feature-text {
    color: rgba(15, 23, 42, 0.8);
}

/* Stats Section */
.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.cs-stat-item {
    padding: 20px;
}
.cs-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}
.cs-stat-label {
    font-size: 1rem;
    font-weight: 500;
    display: block;
}
.cs-section-dark .cs-stat-label,
.cs-section-gradient .cs-stat-label {
    color: rgba(255, 255, 255, 0.85);
}
.cs-section-light .cs-stat-label {
    color: rgba(15, 23, 42, 0.85);
}

/* CTA Section */
.cs-cta-section {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin: 40px 0;
}
.cs-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}
.cs-cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #4f46e5 !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.cs-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.cs-cta-btn svg {
    width: 18px;
    height: 18px;
}

/* Two Column Layout */
.cs-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cs-two-cols.reverse {
    direction: rtl;
}
.cs-two-cols.reverse > * {
    direction: ltr;
}
.cs-col-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-col-image::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 24px;
    z-index: 0;
}
.cs-col-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.1);
}
.cs-section-light .cs-col-image::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
}
.cs-section-light .cs-col-image img {
    border-color: rgba(99, 102, 241, 0.1);
}
.cs-col-content .cs-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
}
.cs-col-content .cs-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.6;
}
.cs-col-content .cs-list li svg {
    width: 22px;
    height: 22px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}
.cs-section-dark .cs-col-content .cs-list li,
.cs-section-gradient .cs-col-content .cs-list li {
    color: rgba(255, 255, 255, 0.9);
}
.cs-section-light .cs-col-content .cs-list li {
    color: rgba(15, 23, 42, 0.9);
}
.cs-section-dark .cs-col-content,
.cs-section-gradient .cs-col-content {
    color: rgba(255, 255, 255, 0.9);
}
.cs-section-light .cs-col-content {
    color: rgba(15, 23, 42, 0.9);
}

/* Pricing/Service Cards */
.cs-service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.cs-service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 25px;
    transition: all 0.3s ease;
}
.cs-service-card:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}
.cs-service-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
}
.cs-service-card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Feature Highlights List */
.cs-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 25px;
}
.cs-highlight-item {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 18px 16px;
    transition: all 0.3s ease;
}
.cs-section-dark .cs-highlight-item,
.cs-section-gradient .cs-highlight-item {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.cs-highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}
.cs-highlight-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.cs-highlight-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}
.cs-highlight-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    display: block;
}
.cs-section-light .cs-highlight-title {
    color: #0f172a;
}
.cs-section-dark .cs-highlight-title,
.cs-section-gradient .cs-highlight-title {
    color: #ffffff;
}
.cs-highlight-text {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}
.cs-section-light .cs-highlight-text {
    color: rgba(15, 23, 42, 0.7);
}
.cs-section-dark .cs-highlight-text,
.cs-section-gradient .cs-highlight-text {
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 600px) {
    .cs-highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* Steps/Process List */
.cs-steps-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
    counter-reset: step-counter;
}
.cs-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 16px;
    border-left: 4px solid #6366f1;
    counter-increment: step-counter;
}
.cs-section-dark .cs-steps-list li,
.cs-section-gradient .cs-steps-list li {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #818cf8;
}
.cs-steps-list li::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    flex-shrink: 0;
}
.cs-steps-list .step-content {
    flex: 1;
}
.cs-steps-list .step-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    display: block;
}
.cs-section-light .cs-steps-list .step-title {
    color: #0f172a;
}
.cs-section-dark .cs-steps-list .step-title,
.cs-section-gradient .cs-steps-list .step-title {
    color: #ffffff;
}
.cs-steps-list .step-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.cs-section-light .cs-steps-list .step-desc {
    color: rgba(15, 23, 42, 0.75);
}
.cs-section-dark .cs-steps-list .step-desc,
.cs-section-gradient .cs-steps-list .step-desc {
    color: rgba(255, 255, 255, 0.75);
}

/* Hero Section for Elementor */
.cs-page-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}
.cs-page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}
.cs-page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(15, 23, 42, 0.85) 100%);
}
.cs-page-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 140px 8% 60px;
}
.cs-page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.cs-page-hero .hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: cs-pulse 2s infinite;
}
@keyframes cs-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.cs-page-hero .hero-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.cs-page-hero .hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.8;
    margin: 0 0 30px 0;
    max-width: 700px;
}
.cs-page-hero .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.35);
}
.cs-page-hero .hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}

/* Responsive */
@media (max-width: 992px) {
    .cs-section { padding: 60px 0; }
    .cs-two-cols { grid-template-columns: 1fr; gap: 40px; }
    .cs-two-cols.reverse { direction: ltr; }
    .cs-col-image {
        max-width: 400px;
        margin: 0 auto;
    }
    .cs-col-image::before {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
    }
}
@media (max-width: 768px) {
    .cs-features-grid { grid-template-columns: 1fr; }
    .cs-section-header { margin-bottom: 40px; }
    .cs-cta-section { padding: 40px 25px; }
    .cs-page-hero { min-height: 400px; }
    .cs-page-hero .hero-content { padding: 120px 5% 50px; text-align: center; }
    .cs-page-hero .hero-cta { padding: 14px 28px; }
}

/* Inner Hero - Sección destacada con imagen de fondo */
.cs-inner-hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cs-inner-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cs-inner-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 27, 75, 0.85) 50%, rgba(15, 23, 42, 0.88) 100%);
}
.cs-inner-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 80px 0;
}
.cs-inner-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.cs-inner-hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.cs-inner-hero-desc {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 0 30px 0;
}
.cs-inner-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.4);
}
.cs-inner-hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
}
.cs-inner-hero-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.cs-inner-hero-btn:hover svg {
    transform: translateX(5px);
}
.cs-inner-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cs-inner-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}
.cs-inner-feature:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.cs-inner-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.cs-inner-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}
.cs-inner-feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cs-inner-feature-text strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}
.cs-inner-feature-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}
@media (max-width: 992px) {
    .cs-inner-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cs-inner-hero-text {
        text-align: center;
    }
    .cs-inner-hero-features {
        max-width: 500px;
        margin: 0 auto;
    }
    .cs-inner-hero-bg {
        background-attachment: scroll;
    }
}
@media (max-width: 600px) {
    .cs-inner-hero { min-height: auto; }
    .cs-inner-hero-content { padding: 60px 0; }
    .cs-inner-hero-features {
        grid-template-columns: 1fr;
    }
    .cs-inner-feature {
        padding: 16px;
    }
}
