/*     VARIABLES Y RESET     */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

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

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #BE3290;
    --secondary-color: #9A2673;
    --dark-color: #0F0C0E;
    --darker-color: #060606;
    --light-color: #f9fafb;
    --light-gray: #C7CFCC;
    --text-color: #0F0C0E;
    --text-light: #6b7280;
    --border-color: #C7CFCC;
}

html, body  {
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.6;
    color: var(--text-color);
}

body * {
    font-family: 'Montserrat', sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/*       HERO SECTION        */
.hero {
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.1) 100%),
        linear-gradient(to bottom, 
            #BE3290 0%, 
            #9A2673 50%, 
            white 100%);
    color: white;
    padding: 150px 20px 150px;
    text-align: center;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Capa metálica superior con movimiento */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 100%
    );
    animation: metalShine 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes metalShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Textura metálica de fondo */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.08) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255,255,255,0.08) 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

/* TÍTULO CON EFECTO CROMADO */
.hero-title {
    font-size: 42px;
    font-weight: 1000;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
    position: relative;
    z-index: 2;
    
    /* EFECTO CROMADO METÁLICO */
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f0f0f0 20%,
        #ffffff 40%,
        #e0e0e0 60%,
        #ffffff 80%,
        #f5f5f5 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Sombras para profundidad metálica */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
    
    /* Animación de brillo metálico */
    background-size: 200% 200%;
    animation: fadeInUp 1s, metallicGlow 6s ease infinite;
}

@keyframes metallicGlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.hero-subtitle {
    font-size: 20px;
    max-width: 1000px;
    margin: 20px auto;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: white !important;
    animation: fadeInUp 1s 0.2s both;
    position: relative;
    z-index: 2;
    
    /* Brillo metálico sutil */
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 10px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-img img {
    height: 200px;
}

.hero-buttons {
    position: relative;
    z-index: 2;
}

/*         BOTONES           */

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-primary-custom {
    background: linear-gradient(
        135deg,
        #BE3290 0%,
        #D64AA8 20%,
        #BE3290 40%,
        #9A2673 60%,
        #BE3290 80%,
        #D64AA8 100%
    );
    background-size: 200% 200%;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    
    /* Sombras metálicas */
    box-shadow: 
        0 4px 15px rgba(190, 50, 144, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    
    animation: buttonMetallic 4s ease infinite;
}

@keyframes buttonMetallic {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


.btn-primary-custom:hover {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(190, 50, 144, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*      SECTION TITLES       */

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    color: var(--dark-color);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    color: #555;
    text-align: center;
}

.section-text {
    font-size: 18px;
    line-height: 1.6;
}

/*      FEATURE CARDS        */
.card-feature {
    background: #F9F9F9;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.feature-icon {
    height: 60px;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 700;
    margin-top: 10px;
    color: var(--primary-color);
}

.feature-text {
    font-size: 16px;
    font-weight: 400;
}

/*      STATS SECTION        */

.stats-row {
    display: flex;
    gap: 0;
    justify-content: center;
}

.stat-box {
    width: 250px;
    padding: 30px;
    text-align: center;
    color: white;
    font-weight: 800;
}

.stat-box h3 {
    font-size: 32px;
    margin-bottom: 0;
}

.stat-box p {
    font-size: 20px;
    margin-top: 5px;
    font-weight: 600;
}

.stat-box.pink {
    background: var(--primary-color);
}

.stat-box.black {
    background: #000;
}

/*     PROCESS SECTION       */

.process-section {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 80px;
    font-family: 'Montserrat', sans-serif;
}

.process-title {
    font-size: 35px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 50px;
}

.process-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.process-step {
    position: relative;
}

.step-box {
    background: #ffffff;
    border: 3px solid var(--primary-color);
    color: rgb(0, 0, 0);
    width: 260px;
    min-height: 150px;
    padding: 25px 20px;
    border-radius: 6px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 3px solid #6d6c6d;
    color: #000000;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -25px;
    left: -25px;
    font-size: 18px;
}

/*    CLOUD LOGOS SECTION    */

.cloud-box {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.cloud-logo {
    max-width: 100px;
    height: auto;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.cloud-logo:hover {
    opacity: 1;
    transform: scale(1.08);
}

/*      FORMS GENERAL        */

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/*    BLAZOR ERROR UI        */

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/*      LOADING SPINNER      */

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    transform: translate(-50%, -50%);
    transform-origin: center center;
     animation: spin 0.8s infinite;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/*      LAYOUT GENERAL       */

.main-layout {
    display: block !important;
}

.content-layout {
    padding: 20px;
    margin-top: 20px;
}

/* Sin padding/margin para home, nosotros y servicios */
body:has(.home-container) .content-layout,
body:has(.nosotros-container) .content-layout,
body:has(.hero) .content-layout,
body:has(.services-page) .content-layout {
    padding: 0 !important;
    margin: 0 !important;
}

code {
    color: var(--primary-color);
}

/*    RESPONSIVE GENERAL     */

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }

    .stat-box {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 30px auto 0 auto;
    }

    .btn-primary-custom {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .process-container {
        flex-direction: column;
        align-items: center;
    }

    .process-step .step-box,
    .process-step .step-number {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }
}
