/* Estilos generales */

/* ---- Formulario de contacto atractivo ---- */
.contact-form {
    animation: aparecerFormulario 0.85s cubic-bezier(.23,1.01,.32,1);
    background: #181c23;
    padding: 2.2rem 2rem 1.7rem 2rem;
    border-radius: 1.3rem;
    box-shadow: 0 6px 32px #0007;
    color: #fff;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
@keyframes aparecerFormulario {
    0% { opacity: 0; transform: translateY(40px) scale(.97); }
    100% { opacity: 1; transform: none; }
}
.form-row-contact {
    display: flex;
    gap: 1.7rem;
    justify-content: space-between;
}
.icon-input {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 1.1rem;
    top: 53%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.93;
    transition: opacity 0.19s;
    z-index: 2;
}
.input-group-contact input {
    padding-left: 2.5rem;
}
.icon-input-full {
    position: relative;
}
.icon-input-full .input-icon {
    left: 1.15rem;
    top: 2.25rem;
}
.contact-form textarea.form-control {
    padding-left: 2.7rem;
    width: 100%;
    box-sizing: border-box;
}

.input-group-contact {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}
.input-group-contact label {
    font-weight: 600;
    margin-bottom: 0.25em;
    color: #00c897;
}
.input-group-contact input {
    background: #232834;
    color: #fff;
    border: 1.5px solid #232834;
    font-size: 1.08rem;
    padding: 0.8rem 1.1rem;
    border-radius: 0.7rem;
    margin-bottom: 0.3rem;
    transition: border 0.2s;
}
.input-group-contact input:focus {
    outline: none;
    border-color: #00c897;
    box-shadow: 0 0 0 2px #00c89733;
}
.contact-form textarea.form-control {
    background: #232834;
    color: #fff;
    border: 1.5px solid #232834;
    font-size: 1.09rem;
    padding: 1.1rem 1.2rem;
    border-radius: 0.8rem;
    min-height: 110px;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    transition: border 0.2s;
    resize: vertical;
}
.contact-form textarea.form-control:focus {
    outline: none;
    border-color: #2998ff;
    box-shadow: 0 0 0 2px #2998ff33, 0 0 14px #2998ff33;
    background: #232f3a;
}
.input-group-contact input:focus {
    background: #232f3a;
    box-shadow: 0 0 0 2px #00c89733, 0 0 14px #00c89733;
}
.input-group-contact input:focus + .input-icon,
.icon-input-full .form-control:focus ~ .input-icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px #00c89755);
}

.contact-form textarea.form-control::placeholder {
    color: #b5b9c9;
    font-style: italic;
    opacity: 1;
}
.contact-form .btn-success {
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.95em 0;
    font-size: 1.18rem;
    font-weight: 600;
    border-radius: 0.9em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    background: linear-gradient(90deg,#2998ff 0%,#00c897 100%);
    color: #fff;
    box-shadow: 0 2px 16px #00c89733;
    display: block;
    text-align: center;
    letter-spacing: 0.01em;
}
.contact-form .btn-success:hover, .contact-form .btn-success:focus {
    background: linear-gradient(90deg,#00c897 10%,#2998ff 90%);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 4px 24px #2998ff33;
}
@media (max-width: 700px) {
    .form-row-contact {
        flex-direction: column;
        gap: 0.9rem;
    }
    .contact-form {
        padding: 1.2rem 0.7rem 1.1rem 0.7rem;
    }
    .icon-input-full .input-icon {
        top: 2.2rem;
    }
}

/* ---- Fin formulario de contacto ---- */

body {
    font-family: "Open Sans", "Inter", "Roboto", "Lato", "Montserrat", "Raleway", "ui-sans-serif", "system-ui", "sans-serif", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    margin: 0;
    padding: 0;
    color: #fff;
    background-color: #121212;
}

/* Sección de encabezado */
.hero-section {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 600px;
    background-color: #0d0d0d;
    position: relative;
    overflow: hidden;
    width: 100vw;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.45) saturate(1.1) blur(0.5px);
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(.23,1.01,.32,1);
    will-change: transform;
}
@media (min-width: 900px) {
    .hero-background {
        background-attachment: fixed;
    }
}
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100%;
    background: linear-gradient(90deg,rgba(13,13,13,0.94) 0%,rgba(13,13,13,0.7) 60%,rgba(13,13,13,0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    margin-left: 4vw;
    text-align: left;
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.1em;
    letter-spacing: -0.03em;
}

.hero-content h2 {
    font-size: 48px;
    color: #00c897;
}

.hero-content p {
    font-size: 18px;
    color: #aaa;
    margin-top: 20px;
}

.lang-switcher .lang-flag {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6em;
    height: 2.6em;
    border: 2.5px solid transparent;
    background: #fff;
    box-shadow: 0 1px 6px #0001;
    transition: border 0.18s, box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
    padding: 0;
    position: relative;
    outline: none;
}
.lang-switcher .lang-flag.active {
    border-color: #00c897;
    box-shadow: 0 0 0 3px #00c89744, 0 1px 10px #00c89722;
    background: #fff;
    transform: scale(1.08);
    z-index: 2;
}
.lang-switcher .lang-flag:hover:not(.active) {
    border-color: #2998ff;
    box-shadow: 0 0 0 2.5px #2998ff33;
    transform: scale(1.07);
}
.flag-img {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    display: block;
    background: #fff;
    box-shadow: 0 0 0 1.5px #ccc;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}
.lang-flag:focus-visible {
    outline: 2px solid #00c897;
    outline-offset: 2px;
}

.lang-switcher .lang-flag.active {
    border: 2px solid #00c897;
    background: #fff2;
    box-shadow: 0 0 0 2px #00c89733;
}
.lang-switcher .lang-flag:hover {
    border: 2px solid #00c89799;
    background: #00c89711;
}

.buttons {
    margin-top: 2.3rem;
    display: flex;
    gap: 1.1rem;
}

.btn {
    text-decoration: none !important;
    padding: 0.75em 2.1em;
    border: none;
    border-radius: 0.9em;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 2px 18px #00c89722;
    transition: background 0.22s, color 0.19s, box-shadow 0.21s, transform 0.18s;
    display: inline-block;
    outline: none;
}
.btn:focus-visible {
    outline: 2px solid #00c897;
    outline-offset: 2px;
}
.btn-primary {
    background: linear-gradient(90deg,#00c897 0%,#2998ff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 18px #00c89733;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(90deg,#2998ff 0%,#00c897 100%);
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 4px 24px #2998ff33;
}
.btn-secondary {
    background: #232834;
    color: #fff;
    border: 1.5px solid #444;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #333b44;
    color: #00c897;
    border-color: #00c897;
    transform: scale(1.04);
}

.stats {
    display: flex;
    gap: 2.3rem;
    margin-top: 2.7rem;
    z-index: 2;
    position: relative;
}
@media (max-width: 700px) {
    .stats {
        flex-direction: column;
        gap: 1.1rem;
        margin-top: 2.2rem;
    }
    .hero-content {
        margin-left: 0.8rem;
        max-width: 98vw;
    }
    .hero-section {
        height: 420px;
    }
}
.stat {
    text-align: left;
    min-width: 120px;
}
.stat span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00c897;
}
.stat p {
    font-size: 1rem;
    color: #aaa;
    margin-top: 0.12em;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: 1;
}

/* Sección de características principales */
.features-section {
    padding: 50px 0;
    text-align: center;
}

.features-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 400;
}

.features-section p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: #1b1b1b;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.05);
}

.feature-card i {
    font-size: 48px;
    color: #00c897;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 400;
}

.feature-card p {
    font-size: 16px;
    color: #aaa;
}

/* Sección de confianza de empresas líderes */
.trust-section {
    padding: 50px 0;
    text-align: center;
}

.trust-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 400;
}

.trust-stats {
    display: flex;
    justify-content: space-around;
}

.trust-stats .stat {
    text-align: center;
}

.trust-stats .stat span {
    font-size: 36px;
    font-weight: 400;
    color: #00c897;
}

.trust-stats .stat p {
    font-size: 18px;
    color: #aaa;
}

.modal-login-bg {
    position:fixed;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    z-index:1000;
    background:rgba(0,0,0,0.75);
    display:flex;
    align-items:center;
    justify-content:center;
}
.login-dark.modal-login-box {
    background:#181c23;
    color:#fff;
    padding:2.2rem 2rem 1.7rem 2rem;
    border-radius:1.3rem;
    box-shadow:0 6px 32px #0007;
    min-width:340px;
    max-width:95vw;
    position:relative;
}
.modal-login-close {
    position:absolute;
    top:0.7rem;
    right:1.2rem;
    font-size:2.1rem;
    background:none;
    border:none;
    color:#00c897;
    cursor:pointer;
    transition:color 0.2s;
}
.modal-login-close:hover {
    color:#d00;
}
.login-title {
    margin-bottom:0.2rem;
    color:#fff;
    font-size:2rem;
    font-weight:700;
    text-align:center;
}
.login-subtitle {
    color:#b5b9c9;
    font-size:1.08rem;
    text-align:center;
    margin-bottom:1.8rem;
}
.modal-login-error {
    color:#ff5b5b;
    font-size:1.1rem;
    margin-bottom:0.7rem;
    min-height:1.3em;
    text-align:center;
}
.form-label {
    display:block;
    margin-bottom:0.3rem;
    font-weight:600;
}
.login-input {
    background:#232834;
    color:#fff;
    border:1.5px solid #232834;
    font-size:1.08rem;
    padding:0.8rem 1.1rem;
    border-radius:0.7rem;
    margin-bottom:0.3rem;
    transition:border 0.2s;
}
.login-input:focus {
    outline:none;
    border-color:#00c897;
    box-shadow:0 0 0 2px #00c89733;
}
.btn-login-main {
    width:100%;
    margin-top:1.2rem;
    padding:0.85em 0;
    font-size:1.18rem;
    font-weight:600;
    border-radius:0.9em;
    border:none;
    cursor:pointer;
    transition:background 0.2s;
    background: linear-gradient(90deg,#2998ff 0%,#00c897 100%);
    color:#fff;
    box-shadow:0 2px 16px #00c89733;
    display:block;
    text-align:center;
}
.btn-login-main:hover {
    background:linear-gradient(90deg,#00c897 10%,#2998ff 90%);
}
.login-forgot {
    margin-top:1.2rem;
    text-align:center;
}
.login-forgot a {
    color:#2998ff;
    text-decoration:none;
    font-size:1.04rem;
}
.login-forgot a:hover {
    text-decoration:underline;
}
.login-eye {
    position:absolute;
    right:1.1em;
    top:2.8em;
    cursor:pointer;
    opacity:0.7;
}
.login-eye:active,.login-eye:focus{
    opacity:1;
    outline:2px solid #00c897;
}
@media (max-width:500px){
    .login-dark.modal-login-box{
        padding:1.2rem 0.7rem;
        min-width:95vw;
    }
}
