/* --- Variables de Color y Reset --- */
:root {
    --primary: #0A3D91; /* Azul corporativo profundo */
    --primary-light: #1A56BC;
    --accent: #00B4D8;  /* Cyan moderno */
    --text: #2B2D42;
    --text-light: #6C757D;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Tipografía --- */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

h2.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

p.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }
.spacer-30 { height: 30px; }

/* --- Marcadores para Ilustraciones --- */
.illustration-placeholder {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: none;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.illustration-placeholder::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.illustration-content {
    text-align: center;
    z-index: 1;
}

.icon-large { font-size: 4rem; display: block; margin-bottom: 10px; }

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(10, 61, 145, 0.25);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 61, 145, 0.4);
    color: var(--white);
}

/* --- Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 400;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.logo-text .bold { font-weight: 700; }

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a:not(.btn-nav) {
    font-weight: 500;
    color: var(--text);
}

.main-nav a:not(.btn-nav):hover { color: var(--accent); }

.btn-nav {
    padding: 8px 22px;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* --- Hero Section --- */
.hero {
    padding: 140px 0 80px 0;
    background-color: var(--light-bg);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: rgba(0, 180, 216, 0.3);
    bottom: 5px;
    left: 0;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: var(--text-light);
}

.hero-illustration {
    width: 100%;
    height: 380px;
}

/* --- Secciones de Info --- */
.info-section { padding: 90px 0; }

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

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 50%;
}

/* --- CTO (Call to Action) --- */
.cto-banner {
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--primary), #112A5E);
    color: var(--white);
    text-align: center;
    border-radius: var(--border-radius);
    margin: 40px 0;
    box-shadow: 0 15px 30px rgba(10,61,145,0.3);
}

.cto-banner h2 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 2rem;
}

.cto-banner p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.btn-cto {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-cto:hover { transform: scale(1.03); color: var(--primary); }

/* --- Soluciones --- */
.align-center { align-items: center; }
.check-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
}
.check-list strong {
    color: var(--accent);
    margin-right: 8px;
    font-size: 1.2rem;
}
.solutions-text h2 { margin-bottom: 20px; }
.solutions-text p { margin-bottom: 25px; color: var(--text-light); }

/* --- Formulario de Contacto --- */
.contact-page { padding: 140px 0 80px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.form-card { padding: 40px; }

.form-group { margin-bottom: 22px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

input, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #F8FAFC;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
}
.alert-error {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #F87171;
}
.success-card { max-width: 600px; margin: 0 auto; padding: 60px 40px; }
.success-icon { font-size: 4rem; background: none; padding: 0; margin-bottom: 10px; }
.success-msg { color: #15803D; font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; }

.contact-illustration { height: 100%; min-height: 400px; }

/* --- Footer --- */
.main-footer {
    padding: 40px 0;
    background-color: var(--white);
    border-top: 1px solid #EAEAEA;
    text-align: center;
}
.footer-content { color: var(--text-light); font-size: 0.9rem; }
.teconsite-name { font-weight: 700; color: var(--primary); letter-spacing: 0.5px; }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-illustration { height: 300px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-illustration { height: 250px; min-height: auto; order: -1; }
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .grid-cards { grid-template-columns: 1fr; }
    .cto-banner { padding: 40px 20px; }
    .cto-banner h2 { font-size: 1.6rem; }
    .hero { padding-top: 180px; } /* Ajuste por el header más alto */
    .contact-page { padding-top: 180px; }
    .form-card { padding: 25px; }
}