/*=============== VARIABLES CSS Y CONFIGURACIÓN GLOBAL ===============*/
:root {
    /* Paleta de Colores */
    --primary-color: #00aaff; /* Azul Eléctrico */
    --background-color: #121212; /* Negro principal */
    --card-color: #1A1A1A;      /* Gris oscuro para tarjetas */
    --text-color: #EAEAEA;     /* Texto principal (blanco suave) */
    --secondary-text-color: #A0A0A0; /* Texto secundario/descripciones */
    --border-color: #2F2F2F;   /* Color para bordes sutiles */

    /* Fuentes */
    --body-font: 'Poppins', sans-serif;

    /* Tamaños de Fuente */
    --big-font-size: 3rem;
    --h2-font-size: 1.75rem;
    --normal-font-size: 1rem;
}

/*=============== BASE Y RESET ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/*=============== CLASES REUTILIZABLES ===============*/
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
}

.section__subtitle {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #0095e0;
    transform: translateY(-3px);
}

/*=============== HEADER Y NAVEGACIÓN ===============*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav {
    height: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-weight: 700;
    font-size: 1.4rem;
}

.nav__list {
    display: flex;
    gap: 3rem;
}

.nav__link {
    font-weight: 500;
    color: var(--secondary-text-color);
    transition: color 0.3s ease;
}

.nav__link:hover, .nav__link.active {
    color: var(--text-color);
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.language-selector .lang-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

/*=============== SECCIÓN HOME ===============*/
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.home__title {
    font-size: var(--big-font-size);
    margin-bottom: 1rem;
}

.home__description {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: var(--secondary-text-color);
}

/*=============== SECCIÓN ABOUT US ===============*/
.about__container {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__description strong {
    color: var(--primary-color);
    font-weight: 600;
}

/*=============== SECCIÓN LOGO SHOWCASE ===============*/
.logo-showcase {
    padding-top: 0; /* Menos espacio superior para que se una a About Us */
}

.logo-showcase__container {
    text-align: center;
}

.logo-showcase__img {
    max-width: 200px; /* Tamaño compacto y elegante */
    border-radius: 50%;
    border: 4px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo-showcase__img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(0, 170, 255, 0.2);
}

/*=============== SECCIÓN SERVICIOS ===============*/
.services__container {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr; /* Dos columnas por defecto */
}

.service-card {
    background-color: var(--card-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.service-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card__icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.card__title {
    font-size: 1.25rem;
}

.card__description {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}

/*=============== SECCIÓN CONTACTO ===============*/
.contact.section {
    padding-bottom: 6rem;
}
.contact__container {
    max-width: 700px;
}
.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form__group {
    display: flex;
    gap: 1.5rem;
}
.contact__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.contact__input::placeholder {
    color: var(--secondary-text-color);
}
.contact__input:focus {
    border-bottom-color: var(--primary-color);
}
textarea.contact__input {
    resize: vertical;
}
.contact__form .button {
    align-self: flex-start;
}

/*=============== FOOTER Y PÁGINA LEGAL ===============*/
.footer {
    background-color: var(--card-color);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer__info p, .footer__links a {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--primary-color);
}

.footer__copy {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
}

.legal-page .section {
    padding-top: 8rem;
}

/*=============== MEDIA QUERIES (DISEÑO RESPONSIVE) ===============*/
@media screen and (max-width: 992px) {
    .services__container {
        grid-template-columns: 1fr; /* Una columna en tablets */
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }
    .section {
        padding: 4rem 0;
    }
    .home__title {
        font-size: 2.5rem;
    }
    .nav__menu {
        /* Para un menú hamburguesa, se ocultaría aquí. */
        display: none;
    }
    .form__group {
        flex-direction: column;
    }
}