﻿/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA PÁGINA CLOUD
   Manteniendo paleta de colores del index.css
   ========================================================================== */

/* Variables locales para Cloud (usando colores del index.css) */
:root {
    --cloud-primary: #00a8ff; /* Azul principal del tema */
    --cloud-secondary: #4cd137; /* Verde éxito */
    --cloud-accent: #9c88ff; /* Púrpura acento */
    --cloud-gradient: linear-gradient(135deg, var(--cloud-primary), var(--cloud-secondary), var(--cloud-accent));
    --cloud-highlight: rgba(0, 168, 255, 0.1);
    --cloud-border-highlight: rgba(0, 168, 255, 0.3);
    --light-bg: #f8f9fa; /* Fondo claro del index */
    --light-card: #ffffff;
    --light-text: #2c3e50; /* Texto oscuro del index */
    --light-text-secondary: #7f8c8d;
    --light-border: #dfe6e9;
    --light-shadow: rgba(108, 117, 125, 0.1);
    --light-hover-shadow: rgba(108, 117, 125, 0.2);
}



/* Tarjetas de servicios cloud */
.cloud-service-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px var(--light-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--cloud-primary);
}

    .cloud-service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, var(--cloud-highlight), transparent);
        transition: left 0.7s ease;
    }

    .cloud-service-card:hover::before {
        left: 100%;
    }

    .cloud-service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px var(--light-hover-shadow);
        border-color: var(--cloud-primary);
    }

.cloud-service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--cloud-primary);
    transition: all 0.3s ease;
}

.cloud-service-card:hover .cloud-service-icon {
    transform: scale(1.1);
    color: var(--cloud-secondary);
}

.cloud-service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-weight: 600;
}

.cloud-service-description {
    color: var(--light-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.cloud-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--cloud-highlight);
    color: var(--cloud-primary);
    border: 1px solid var(--cloud-border-highlight);
}

/* Lista de características cloud */
.cloud-features-list {
    text-align: left;
    margin-top: 1.5rem;
    color: var(--light-text-secondary);
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

    .cloud-features-list li {
        margin-bottom: 0.5rem;
        padding-left: 1.8rem;
        position: relative;
        line-height: 1.5;
        font-size: 0.9rem;
    }

        .cloud-features-list li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--cloud-primary);
            font-weight: bold;
            font-size: 1.1rem;
        }

.cloud-advantages {
    background: var(--cloud-highlight);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
    font-size: 0.9rem;
    color: var(--light-text);
    border-left: 3px solid var(--cloud-primary);
}

/* Botón de detalles cloud */
.btn-cloud-details {
    display: inline-flex;
    align-items: center;
    color: var(--cloud-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    margin-top: auto;
}

    .btn-cloud-details:hover {
        color: white;
        background: var(--cloud-primary);
        transform: translateX(5px);
        border-color: var(--cloud-primary);
    }

    .btn-cloud-details i {
        margin-right: 0.5rem;
        transition: transform 0.3s ease;
    }

    .btn-cloud-details:hover i {
        transform: rotate(90deg);
    }

/* Tarjetas de modelos cloud */
.cloud-model-card {
    background: var(--light-card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--light-border);
    height: 100%;
    cursor: pointer;
}

    .cloud-model-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px var(--light-shadow);
        border-color: var(--cloud-primary);
    }

.cloud-model-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cloud-primary);
    transition: all 0.3s ease;
}

.cloud-model-card:hover .cloud-model-icon {
    transform: scale(1.2);
    color: var(--cloud-secondary);
}

.cloud-model-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
}

.cloud-model-description {
    color: var(--light-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Tarjetas de hechos cloud */
.cloud-fact-card {
    background: var(--light-card);
    border-radius: 12px;
    border-left: 4px solid var(--cloud-primary);
    box-shadow: 0 5px 15px var(--light-shadow);
    transition: all 0.3s ease;
    padding: 1.5rem;
    border: 1px solid var(--light-border);
    height: 100%;
}

    .cloud-fact-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px var(--light-hover-shadow);
    }

    .cloud-fact-card h4 {
        color: var(--cloud-primary);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
    }

    .cloud-fact-card p {
        color: var(--light-text);
        margin: 0;
        line-height: 1.5;
    }

/* CTA Section específica para Cloud */
.cloud-cta-section {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.9), rgba(76, 209, 55, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    border-radius: 15px;
    margin: 5rem auto;
    max-width: 1200px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 168, 255, 0.2);
}

    .cloud-cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        animation: pulseBackground 8s ease-in-out infinite alternate;
    }

    .cloud-cta-section .container {
        position: relative;
        z-index: 2;
    }

    .cloud-cta-section .contact-cta {
        color: white;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        font-size: 2.5rem;
    }

    .cloud-cta-section .lead {
        color: rgba(255, 255, 255, 0.95);
        font-size: 1.2rem;
    }

    .cloud-cta-section .text-white-50 {
        color: rgba(255, 255, 255, 0.8) !important;
    }

/* Botones de llamada a la acción cloud */
.cloud-cta-button {
    background: white;
    color: var(--cloud-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .cloud-cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        background: var(--cloud-primary);
        color: white;
        border-color: white;
    }

    .cloud-cta-button i {
        margin-right: 0.5rem;
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .cloud-cta-button:hover i {
        transform: translateX(5px);
    }

    /* Variantes de botones CTA */
    .cloud-cta-button.primary {
        background: var(--cloud-primary);
        color: white;
    }

        .cloud-cta-button.primary:hover {
            background: white;
            color: var(--cloud-primary);
        }

    .cloud-cta-button.secondary {
        background: var(--cloud-secondary);
        color: white;
    }

        .cloud-cta-button.secondary:hover {
            background: white;
            color: var(--cloud-secondary);
        }

/* Tabla comparativa cloud */
.comparison-table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--light-shadow);
    border: 1px solid var(--light-border);
}

.comparison-table {
    width: 100%;
    min-width: 900px;
    background: var(--light-card);
    border-radius: 10px;
    overflow: hidden;
}

    .comparison-table th {
        background: var(--cloud-highlight);
        padding: 1.2rem;
        text-align: left;
        font-weight: 600;
        color: var(--light-text);
        border-bottom: 2px solid var(--light-border);
    }

    .comparison-table td {
        padding: 1rem;
        border-bottom: 1px solid var(--light-border);
        color: var(--light-text-secondary);
        vertical-align: middle;
    }

    .comparison-table tr:hover {
        background: var(--cloud-highlight);
    }

    .comparison-table strong {
        color: var(--cloud-primary);
    }

/* Colores para badges consistentes con index.css */
.badge.bg-primary {
    background-color: var(--cloud-primary) !important;
    color: white;
}

.badge.bg-success {
    background-color: var(--cloud-secondary) !important;
    color: white;
}

.badge.bg-warning {
    background-color: #f39c12 !important;
    color: white;
}

.badge.bg-info {
    background-color: #00cec9 !important;
    color: white;
}

.badge.bg-secondary {
    background-color: #636e72 !important;
    color: white;
}

/* Sección de fondo claro */
.bg-light-section {
    background: var(--light-bg);
    padding: 5rem 0;
    border-radius: 20px;
    margin: 3rem 0;
    position: relative;
}

    .bg-light-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: var(--cloud-gradient);
    }

/* Timeline del proceso */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
}

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 10%;
        right: 10%;
        height: 3px;
        background: var(--cloud-gradient);
        z-index: 1;
    }

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--light-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    border: 3px solid var(--cloud-primary);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.15);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    background: var(--cloud-primary);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.2);
}

    .process-step:hover .step-icon i {
        color: white;
    }

.step-icon i {
    font-size: 1.8rem;
    color: var(--cloud-primary);
    transition: all 0.3s ease;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--cloud-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 168, 255, 0.3);
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--light-text);
    font-weight: 600;
}

.step-description {
    color: var(--light-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Sectores empresariales */
.sector-card {
    background: var(--light-card);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--light-shadow);
}

    .sector-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--cloud-gradient);
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .sector-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px var(--light-hover-shadow);
        border-color: var(--light-border);
    }

        .sector-card:hover::before {
            height: 6px;
            opacity: 1;
        }

/* Iconos de sector */
.sector-icon {
    width: 70px;
    height: 70px;
    background: var(--cloud-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--cloud-primary);
    transition: all 0.3s ease;
}

.sector-card:hover .sector-icon {
    transform: scale(1.1);
    background: var(--cloud-primary);
    color: white;
}

/* Soluciones por sector */
.sector-solutions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.solution-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--cloud-highlight);
    color: var(--cloud-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--cloud-border-highlight);
    transition: all 0.3s ease;
}

.sector-card:hover .solution-badge {
    background: var(--cloud-primary);
    color: white;
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseBackground {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Efecto flotante para elementos importantes */
.cloud-service-card:hover,
.sector-card:hover {
    animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cloud-hero .hero-title {
        font-size: 3rem;
    }

    .process-timeline {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .cloud-hero .hero-title {
        font-size: 2.5rem;
    }

    .cloud-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .process-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }

        .process-timeline::before {
            display: none;
        }

    .process-step {
        flex: 0 0 calc(50% - 2rem);
        margin-bottom: 2rem;
    }

    .cloud-model-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cloud-hero {
        min-height: 70vh;
        background-attachment: scroll;
    }

        .cloud-hero .hero-title {
            font-size: 2.2rem;
        }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .cloud-service-card,
    .cloud-model-card {
        padding: 1.5rem;
    }

    .cloud-cta-section {
        padding: 3rem 1.5rem;
        margin: 3rem 1rem;
    }

        .cloud-cta-section .contact-cta {
            font-size: 2rem;
        }
}

@media (max-width: 576px) {
    .cloud-hero .hero-title {
        font-size: 1.8rem;
    }

    .cloud-hero .hero-content {
        padding: 2rem 1rem;
    }

    .cloud-service-icon {
        font-size: 2.5rem;
    }

    .cloud-service-title {
        font-size: 1.3rem;
    }

    .cloud-fact-card {
        padding: 1.5rem;
    }

    .cloud-cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Clases de utilidad para texto */
.text-primary {
    color: var(--cloud-primary) !important;
}

.text-secondary {
    color: var(--cloud-secondary) !important;
}

.text-accent {
    color: var(--cloud-accent) !important;
}

.text-dark {
    color: var(--light-text) !important;
}

.text-muted {
    color: var(--light-text-secondary) !important;
}

/* Estilos generales consistentes con index.css */
.section-title {
    position: relative;
    color: var(--light-text);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: var(--cloud-gradient);
        margin: 1rem auto;
        border-radius: 2px;
    }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--light-text-secondary);
    line-height: 1.7;
    text-align: center;
}

/* Efectos de hover generales */
.cloud-service-card,
.cloud-model-card,
.cloud-fact-card,
.sector-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Separadores visuales */
section {
    position: relative;
    padding: 5rem 0;
}

.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--light-border), transparent);
}

.section:last-child::after {
    display: none;
}

/* Nubes animadas en el fondo del hero */
.cloud-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://cdn-icons-png.flaticon.com/512/3208/3208720.png') center/contain no-repeat, url('https://cdn-icons-png.flaticon.com/512/3208/3208706.png') 20% 30%/200px no-repeat, url('https://cdn-icons-png.flaticon.com/512/3208/3208706.png') 80% 70%/150px no-repeat;
    opacity: 0.1;
    animation: cloudsMove 30s linear infinite;
    z-index: 1;
}

@keyframes cloudsMove {
    0% {
        background-position: center, 20% 30%, 80% 70%;
    }

    50% {
        background-position: center, 30% 40%, 70% 60%;
    }

    100% {
        background-position: center, 20% 30%, 80% 70%;
    }
}

/* Remover animación en dispositivos móviles para rendimiento */
@media (max-width: 768px) {
    .cloud-hero::after {
        animation: none;
    }

    .cloud-service-card:hover,
    .sector-card:hover {
        animation: none;
    }
}



/* CSS para crear un icono personalizado de video-conferencia - GOTO MEETING*/
.fa-video-conference {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
}

    .fa-video-conference:before,
    .fa-video-conference:after {
        content: '';
        position: absolute;
        background: currentColor;
    }

    /* Círculo principal (cámara) */
    .fa-video-conference:before {
        width: 0.8em;
        height: 0.6em;
        top: 0.2em;
        left: 0.1em;
        border-radius: 0.1em;
        background: currentColor;
    }

    /* Lente de la cámara */
    .fa-video-conference:after {
        width: 0.3em;
        height: 0.3em;
        top: 0.35em;
        left: 0.35em;
        border-radius: 50%;
        background: white;
        box-shadow: 0 0 0 0.05em currentColor;
    }

    /* Personas adicionales para representar conferencia (opcional) */
    .fa-video-conference .person {
        position: absolute;
        width: 0.2em;
        height: 0.3em;
        background: currentColor;
        border-radius: 0.1em 0.1em 0 0;
    }

    .fa-video-conference .person-1 {
        top: 0.7em;
        left: -0.1em;
    }

    .fa-video-conference .person-2 {
        top: 0.7em;
        right: -0.1em;
    }

    /* Floating CTA */
    .cta-floating {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }