/* --- Global y Fuentes --- */
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Roboto:wght@400;700&display=swap');

:root {
    --primary-color: #6D4C41; /* Marrón oscuro */
    --secondary-color: #A1887F; /* Marrón claro */
    --accent-color: #FFB74D; /* Naranja/Ámbar */
    --background-color: #FDF8E1; /* Crema/Papel */
    --text-color: #3E2723; /* Marrón muy oscuro */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Patrick Hand', cursive;
    color: var(--primary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header y Navegación --- */
header {
    background: #FFF;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Patrick Hand', cursive;
    font-size: 24px;
    font-weight: bold;
}
.logo img {
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--accent-color);
}

/* --- Sección Hero --- */
.hero {
    background: url('../images/portada.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.hero h1 {
    font-size: 56px;
    margin-bottom: 10px;
    color: white;
}
.hero .subtitle {
    font-size: 22px;
    max-width: 600px;
    margin: 0 auto 30px;
}
.store-buttons img {
    height: 60px;
    margin: 0 10px;
}

/* --- Secciones Generales --- */
section {
    padding: 60px 0;
}
section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
}

/* --- Características --- */
.features {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-icon {
    height: 200px;
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* --- Capturas de Pantalla --- */
.screenshots {
    background-color: #EFEBE9;
}
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
}
.screenshots-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.screenshots-grid img:hover {
    transform: scale(1.05);
}

/* --- Sección Educativa --- */
.educational-focus {
    background-color: var(--background-color); /* Mismo fondo que el body para alternar */
}
.educational-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
}
.educational-content a {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Sección Explicación AR --- */
.ar-explanation {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
}

/* --- Futuras Apps --- */
.future-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.future-item {
    background: #FFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.future-item.upcoming {
    border: 2px dashed var(--secondary-color);
    color: var(--secondary-color);
}
.future-item h4 {
    margin: 0 0 5px 0;
    font-size: 22px;
}

/* --- Página y Formulario de Contacto --- */
.contact-form {
    max-width: 700px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}
.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Patrick Hand', cursive;
    transition: background-color 0.3s;
}
.btn-submit:hover {
    background: var(--accent-color);
}
.feedback-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}
.feedback-message.success { background-color: #D4EDDA; color: #155724; }
.feedback-message.error { background-color: #F8D7DA; color: #721C24; }

/* --- Páginas Legales --- */
.legal-page h1 { font-size: 40px; }
.legal-page h2 { font-size: 28px; margin-top: 30px; }

/* --- Footer --- */
footer {
    background: var(--primary-color);
    background: url('../images/leather-bg.jpg') no-repeat center center/cover;
    color: #EFEBE9;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}
.footer-links {
    margin-bottom: 15px;
}
.footer-links a {
    color: #EFEBE9;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--accent-color);
}

/* --- Responsividad para Móviles --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Para un MVP, ocultar el menú es lo más simple. Se puede añadir un menú hamburguesa con JS más adelante. */
    .hero h1 { font-size: 42px; }
    .hero .subtitle { font-size: 18px; }
    section h2 { font-size: 32px; }
    .educational-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}