/* style.css - VERSIÓN FINAL CORREGIDA */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --accent-red: #ff3b3b;
    --accent-gray: #a0a0a0;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Regla global para evitar problemas de tamaños */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
}

/* Header y Navegación */
header {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    border-bottom: 2px solid var(--card-bg);
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

.tagline {
    font-style: italic;
    color: var(--accent-gray);
    margin-top: 5px;
    font-size: 0.9rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-red);
}

/* Secciones Generales */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--accent-red);
    display: inline-block;
}

/* Noticias */
.news-snippet, .news-item {
    background: var(--card-bg);
    padding: 20px;
    border-left: 4px solid var(--accent-red);
    margin-bottom: 40px;
}
.news-item:hover { border-left-color: #fff; }

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-red);
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Proyectos */
.project-row {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}
.project-row:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}
.project-img { flex: 1; text-align: center; }
.project-img img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.project-img img:hover { transform: scale(1.02); }
.project-info { flex: 1; }

.btn-main {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}
.btn-main:hover { background-color: #d32f2f; }

/* --- CORRECCIONES SOBRE NOSOTROS --- */
.about-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.about-text { flex: 2; }

/* Aquí limitamos al perro para que no se coma la pantalla */
.about-img {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-img img {
    max-width: 100%;
    width: 250px; /* Tamaño fijo ideal */
    height: auto;
    border-radius: 10px; /* Bordes un poco redondeados */
    border: 2px solid var(--accent-red);
    margin-bottom: 15px;
}

/* Estilo nuevo para la frase final */
.about-tagline {
    font-size: 1.1rem; /* Más grande */
    color: #fff; /* Blanco brillante */
    font-style: italic;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

blockquote {
    font-style: italic;
    border-left: 3px solid var(--accent-red);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--accent-gray);
    background: #181818;
    padding: 15px;
}

/* --- CORRECCIONES FORMULARIO DE CONTACTO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group label {
    display: block; /* Asegura que la etiqueta esté ENCIMA del input */
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Forzamos el estilo oscuro en los inputs */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    display: block;
    background-color: #0f0f0f !important; /* Fondo negro forzado */
    border: 1px solid #333 !important;
    color: #fff !important; /* Texto blanco */
    padding: 15px;
    font-size: 1rem;
    border-radius: 4px;
    font-family: var(--font-main);
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--accent-red) !important;
    background-color: #1a1a1a !important;
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 20px;
    text-align: center;
    margin-top: 50px;
}

/* Responsividad */
@media (max-width: 768px) {
    .project-row, .project-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    .about-grid, .contact-wrapper {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .about-grid { flex-direction: column-reverse; }
    .store-zone { flex-direction: column; align-items: center; }
}