/* GENERAL */
body {
    margin: 0;
    background: #1d1f23;
    color: #e3e6ea;
    font-family: "Inter", Arial, sans-serif;
}

h1, h2, h3 { margin: 0; }


/* HERO TECNOLÓGICO */
.hero {
    height: 50vh;
    min-height: 400px;

	background:
		
		url("hero-tech-lines.jpg") center/cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.45) 90%);
}

.hero-inner {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 850px;
    padding: 20px 20px 0px 20px;
}

.logo {
    width: 260px;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 0 18px rgba(90,140,255,0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

.btn {
    background: #3d7bdb;
    padding: 14px 32px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.btn:hover {
    background: #66a0ff;
}


/* SERVICIOS */
.servicios {
    padding: 20px 20px 90px;
    max-width: 1250px;
    margin: auto;
}

.servicios h2 {
    font-size: 2.1rem;
    text-align: center;
    margin-bottom: 45px;
}


/* CARDS TECNOLÓGICOS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
    max-width: 1200px; /* evita 4 o + columnas */
    margin: 0 auto;
}


.card {
    background: #262a30;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid rgba(80,110,140,0.3);
    box-shadow: 0px 10px 20px rgba(0,0,0,0.25);
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.35);
    border-color: #3d7bdb;
}

.card h3 {
    color: #66a0ff;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card ul {
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
    line-height: 1.45;
}


/* RESPONSIVE */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .logo { width: 200px; }
}

.hero-inner::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 140px;
    background: rgba(20,22,26,0.65);
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    filter: blur(6px);
    z-index: -1;
}

/* FOOTER */
.footer {
    background: linear-gradient(90deg, #191c1f 0%, #1b1e22 100%);
    padding: 30px 20px 30px;
    color: #d2d6dc;
    border-top: 1px solid #2a2e32;
	margin-top: 30px;
}

.footer-inner.footer-asym {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: flex-start;
    gap: 55px;
}

.footer-left {
    flex: 2;
}

.footer-right {
    flex: 1;
}

.footer-left h3,
.footer-right h3 {
    color: #3f7bff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 6px rgba(63,123,255,0.12);
}

/* ICONOS */
.footer h3 .icon svg {
    transform: translateY(1px);
}

/* Compactar los <p> */
.footer-left p {
    margin-bottom: 6px;    
    /* line-height: 1.45;       Ajustado para más compacidad */
}

/* Columna derecha */
.footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-right ul li {
    margin-bottom: 10px;
}

.footer-right ul li a {
    color: #8fb3ff;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-right ul li a:hover {
    color: #3f7bff;
}

.footer-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, #2d3136, transparent);
    height: 100%;
    opacity: 0.5;
}

/* COPYRIGHT */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #8b8f94;
    opacity: 0.85;
}

@media (max-width: 800px) {
    .footer-inner.footer-asym {
        flex-direction: column;
        gap: 40px;
    }

    .footer-divider {
        display: none;
    }
}




/* CONTACTO – 2 COLUMNAS */
.contacto {
    padding: 0px 20px;
    max-width: 1200px;
    margin: auto;
}

.contacto h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 50px;
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    background: #262a30;
    border-radius: 16px;
    padding: 50px 40px;
    border: 1px solid rgba(80,110,140,0.35);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

/* IZQUIERDA */
.contacto-info h3 {
    font-size: 1.5rem;
    color: #66a0ff;
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 22px;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    color: #66a0ff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.info-item a,
.info-item p {
    font-size: 1.15rem;
    color: #dfe3ea;
    text-decoration: none;
}

.info-item a:hover {
    color: #66a0ff;
}

/* FORMULARIO */
.contacto-form .form-group {
    margin-bottom: 20px;
}

.contacto-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #9aa0a8;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    background: #1f2227;
    border: 1px solid #3b4148;
    color: #fff;
    font-size: 1rem;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: #66a0ff;
    outline: none;
}

/* BOTÓN */
.btn-form {
    margin-top: 10px;
    padding: 12px 30px;
    background: #3d7bdb;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s;
}

.btn-form:hover {
    background: #66a0ff;
}

/* RESPONSIVE */
@media (max-width: 850px) {
    .contacto-container {
        grid-template-columns: 1fr;
    }
}


/* CONTENEDOR CONTACTO */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    background: #262a30;
    border-radius: 16px;
    padding: 50px 40px;
    border: 1px solid rgba(80,110,140,0.35);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

/* RECLAMO IZQUIERDA */
.contacto-reclamo {
    margin-bottom: 30px;
    font-size: 1.05rem;
    color: #c9cdd2;
    line-height: 1.45;
}

/* FORM ROW (Nombre + Email en fila) */
.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* CHECKBOX ALINEADO PERFECTO */
.consentimiento .check-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    line-height: 1.4;
}

.check-container input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3b4148;
    border-radius: 4px;
    background: #1f2227;
    cursor: pointer;
    transition: 0.25s;
    position: relative;
    flex-shrink: 0;
}

.check-container input:checked {
    background: #3d7bdb;
    border-color: #66a0ff;
}

.check-container input:checked::after {
    content: "✔";
    position: absolute;
    color: #fff;
    font-size: 12px;
    left: 3px;
    top: -1px;
}

/* INFO RGPD MÁS AIREADA */
.rgpd-info {
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #9aa0a8;
}

.rgpd-info a {
    color: #66a0ff;
}

/* FORM */
.honeypot {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

.alerta {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alerta.exito {
    background: rgba(50, 200, 120, 0.15);
    border: 1px solid rgba(50, 200, 120, 0.35);
    color: #5ce69c;
}

.alerta.error {
    background: rgba(200, 60, 60, 0.15);
    border: 1px solid rgba(200, 60, 60, 0.35);
    color: #ff8c8c;
}

.ajax-message {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease;
}

.ajax-message.success {
    background: rgba(50, 200, 120, 0.15);
    border: 1px solid rgba(50, 200, 120, 0.35);
    color: #5ce69c;
}

.ajax-message.error {
    background: rgba(200, 60, 60, 0.15);
    border: 1px solid rgba(200, 60, 60, 0.35);
    color: #ff8c8c;
}

.ajax-message.loading {
    background: rgba(60,120,255,0.18);
    border: 1px solid rgba(60,120,255,0.4);
    color: #66a0ff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* VALIDACIÓN VISUAL */
input:focus, textarea:focus {
    border-color: #66a0ff;
    box-shadow: 0 0 8px rgba(102,160,255,0.35);
    transition: 0.2s;
}

input.error, textarea.error {
    border-color: #ff5f5f !important;
    background: rgba(255,60,60,0.08) !important;
}


.legal-wrapper {
    background: #191c1f;
    padding: 0px 20px;
    display: flex;
    justify-content: center;
}

.legal-box {
    max-width: 1150px;
    width: 100%;
    background: #22262b;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    color: #d2d6dc;
}

.legal-box h1 {
    font-size: 2.4rem;
    color: #3f7bff;
    font-weight: 700;
    margin-bottom: 10px;
}

.legal-box h2 {
    margin-top: 35px;
    margin-bottom: 12px;
    font-size: 1.6rem;
    color: #8fb3ff;
}

.legal-box .updated {
    color: #8b8f94;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.legal-box p {
    margin-bottom: 18px;
    line-height: 1.65;
}

.legal-box ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-box li {
    margin-bottom: 10px;
}

.legal-box a {
    color: #3f7bff;
}

.legal-box a:hover {
    color: #7ea8ff;
}


/* RESPONSIVE */
@media (max-width: 850px) {
    .contacto-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }
}
