/* --- Variables Reutilizadas --- */
:root {
    --color-text-dark: #1C1C1E;
    --color-text-mid: #5A5A5A;
    --color-text-light: #777777;
    --color-background-soft: #F5F5F5;
    --color-background-card: #FFFFFF;
    --color-border-subtle: #E5E5E5;
    --color-accent-blue: #4A90E2;
    --color-light-blue: #EAF3FF;
    --color-primary-button: #1C1C1E;
    --color-hover-dark: #333333;
    --border-radius-card: 10px;
    --border-radius-small: 8px;
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-weight-bold: 800;
    --font-weight-medium: 600;
}

/*====================================================================
  1. ESTILOS BASE Y TÍTULO DE PÁGINA
======================================================================*/
body {
    background-color: var(--color-background-soft);
    font-family: var(--font-primary);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.text {
    text-align: center;
    margin-bottom: 50px;
}

.text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    margin-bottom: 5px;
    line-height: 1.2;
}

.text h1 span {
    color: var(--color-accent-blue);
}

.text h4 {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--color-text-mid);
    max-width: 600px;
    margin: 0 auto;
}

/*====================================================================
  2. CONTENEDOR PRINCIPAL (FORM + ASIDE)
======================================================================*/
.container { /* Corregido: debería ser .container, pero uso el nombre del HTML */
    display: flex;
    gap: 30px;
    align-items: flex-start; /* Alinea los elementos en la parte superior */
    max-width: 1050px;
    margin: 0 auto;
}

/* --- Sección del Formulario (Columna Izquierda) --- */
.container section {
    flex: 2; /* Ocupa 2/3 del espacio */
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border-subtle);
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Título de la sección del formulario */
.container section .tittle {
    font-size: 1.3em;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-dark);
    text-align: left;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

/* --- Estilos del Formulario --- */
form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    gap: 20px;
}

/* Contenedor de inputs de 2 columnas */
.data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.9em;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 10px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--border-radius-small);
    font-size: 1em;
    color: var(--color-text-dark);
    transition: border-color 0.3s;
    background-color: var(--color-background-card);
    font-family: inherit;
    width: 100%;
    /* Estilo de línea de abajo como en la imagen para inputs vacíos */
}

select{
   padding: 10px 12px;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--border-radius-small);
    font-size: 1em;
    color: var(--color-text-dark);
    transition: border-color 0.3s;
    background-color: var(--color-background-soft);
    font-family: inherit;
    width: 100%; 
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent-blue);
    outline: none;
}

/* Textarea para descripción del proyecto */
.form-group:last-child input[type="text"] {
    height: 80px; /* Simular un textarea */
    resize: none;
    padding-top: 10px;
}

form .button{
    display: block;
    width: 100%;
    padding: 15px 0;
    margin-top: 10px;
    
    background-color: var(--color-primary-button);
    color: var(--color-background-card);
    border-radius: var(--border-radius-small);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
}

form::after:hover {
    background-color: var(--color-hover-dark);
}


/*====================================================================
  3. ASIDE (INFORMACIÓN ADICIONAL)
======================================================================*/
aside {
    flex: 1; /* Ocupa 1/3 del espacio */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Card 1: ¿Qué sigue después? --- */
aside .card:first-child {
    background-color: var(--color-light-blue); /* Fondo azul pálido, como en la imagen */
    border-radius: var(--border-radius-card);
    padding: 20px;
    color: var(--color-text-dark);
    border: 1px solid var(--color-bubble-border);
}

aside .card:first-child > p:first-child {
    font-size: 1em;
    font-weight: var(--font-weight-bold);
    margin-bottom: 15px;
}

aside .card ul {
    list-style: none;
    padding: 0;
}

aside .card ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* Icono de Check */
aside .card .icon img {
    height: 16px;
    width: 16px;
    margin-top: 3px;
    /* Filtro: Asegura que el icono de check sea azul */
    filter: invert(36%) sepia(85%) saturate(1636%) hue-rotate(200deg) brightness(98%) contrast(90%);
    flex-shrink: 0;
}

.txt-list p:first-child {
    font-size: 0.95em;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    margin: 0;
}

.txt-list p:last-child {
    font-size: 0.85em;
    color: var(--color-text-mid);
    margin: 0;
}

/* --- Card 2: Contacto Directo --- */
aside .card:last-child {
    background-color: var(--color-background-card);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border-subtle);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

aside .card:last-child p:first-child {
    font-size: 1em;
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
}

aside .card:last-child p:nth-child(2) {
    font-size: 0.9em;
    color: var(--color-text-mid);
    margin-bottom: 15px;
}

aside .card:last-child p:nth-child(3),
aside .card:last-child p:nth-child(4) {
    font-size: 0.9em;
    color: var(--color-text-dark);
    margin: 5px 0;
}

/*
    5. ALERTA DE FORMULARIO
*/

.alert { 
    padding: 15px; margin-bottom: 20px; border-radius: 5px; text-align: center; font-weight: bold;
}
.alert.error {
    background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;
}
.alert.success {
    background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb;
}

/*====================================================================
  4. RESPONSIVE
======================================================================*/
@media (max-width: 950px) {
    .container {
        flex-direction: column; /* Apilar en columnas */
    }

    .container section,
    aside {
        flex: 1;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    main {
        padding: 40px 15px;
    }
    
    .text h1 {
        font-size: 2.5rem;
    }
    
    .data {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
}