/* --- style.css --- */
/* Estilos Generales de GuitarMind */

:root {
    --bg: #f8f9fa;
    --text: #2d3436;
    --primary: #2c3e50; 
    --accent: #e67e22;  /* Naranja */
    --card-bg: #ffffff;
    
    /* Variables del Mástil (Redefinidas aquí para que sean globales) */
    --wood: #fcf6e8;
    --wire: #b2bec3;
    --marker: #2d3436;
    --success: #00b894;
    --error: #d63031;
    --hint: #0984e3;
    
    /* Variables Visor */
    --next-color: #00b894;
    --prev-color: #ff7675;
    --both-color: #fdcb6e;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* --- ELEMENTOS COMUNES --- */

/* Header & Navegación */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}

nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.8rem 20px; 
    display: flex; justify-content: space-between; align-items: center;
    position: relative;
}

.logo {
    text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; line-height: 1;
}
.main-logo {
    font-size: 2.2rem; font-weight: 800; color: var(--primary); letter-spacing: -1.5px;
}
.main-logo span { color: var(--accent); }
.sub-logo {
    font-size: 0.6rem; color: #95a5a6; font-weight: 600; margin-top: 4px; letter-spacing: 0.5px; margin-left: 2px;
}

/* Enlaces del menú (Desktop) */
.nav-links { display: flex; gap: 20px; }
.nav-links a {
    text-decoration: none; color: var(--text); font-weight: 600; transition: color 0.3s; font-size: 1rem;
}
.nav-links a:hover { color: var(--accent); }

/* Botón Volver (Para las herramientas) */
.btn-back {
    text-decoration: none; color: var(--text); font-weight: 600;
    display: flex; align-items: center; gap: 8px; transition: color 0.2s; font-size: 1rem;
}
.btn-back:hover { color: var(--accent); }
.btn-back span { font-size: 1.2rem; line-height: 1; }

/* Menú Hamburguesa (Móvil) */
.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px;
}
.hamburger span {
    display: block; width: 25px; height: 3px; background-color: var(--primary); border-radius: 2px; transition: 0.3s;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--card-bg); flex-direction: column; padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); border-top: 1px solid #eee; text-align: center; gap: 0;
    }
    .nav-links.active { display: flex; animation: slideDown 0.3s ease forwards; }
    .nav-links a { display: block; padding: 15px; border-bottom: 1px solid #f1f2f6; width: 100%; box-sizing: border-box; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILOS DE LA PORTADA (INDEX) --- */

/* Hero */
.hero {
    position: relative; text-align: center; padding: 120px 20px; color: white;
    margin-bottom: 40px; overflow: hidden; background: #222;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 0;
    opacity: 0; animation: fadeCarousel 16s infinite;
}
/* Asegúrate de que las rutas de imagen sean correctas en tu proyecto */
.bg-img-1 { background-image: url('../../carrusel_01.jpg'); animation-delay: 0s; }
.bg-img-2 { background-image: url('../../carrusel_02.png'); animation-delay: 8s; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { 
    font-size: 3.5rem; margin-bottom: 10px; font-weight: 900; 
    text-transform: uppercase; letter-spacing: -2px; text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.hero p { font-size: 1.4rem; opacity: 0.9; max-width: 700px; margin: 0 auto; font-weight: 300; }
@keyframes fadeCarousel {
    0% { opacity: 0; } 10% { opacity: 1; } 45% { opacity: 1; } 55% { opacity: 0; } 100% { opacity: 0; }
}

/* Grid Herramientas (Index) */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px 20px; }
.section-title {
    font-size: 2rem; margin-bottom: 30px; border-bottom: 3px solid var(--accent);
    display: inline-block; padding-bottom: 5px; color: var(--primary); font-weight: 800;
}
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.tool-card {
    background: var(--card-bg); border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee; display: flex; flex-direction: column;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); border-color: var(--accent); }

.card-header {
    height: 100px; background: #2d3436; display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.card-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tool-tag {
    background: #ffeaa7; color: #d35400; padding: 4px 10px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; width: fit-content;
}
.tool-card h3 { margin: 0 0 10px 0; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.tool-card p { color: #636e72; font-size: 1rem; margin-bottom: 25px; flex-grow: 1; line-height: 1.5; }
.btn-tool {
    display: block; text-align: center; background: var(--primary); color: white;
    text-decoration: none; padding: 12px; border-radius: 6px; font-weight: bold; transition: background 0.2s;
}

/* Añade o modifica esto en tus estilos CSS */
.lang-select {
    background: transparent;
    border: 1px solid #dfe6e9;
    border-radius: 4px;
    padding: 5px 10px;        /* Un poco más de espacio */
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    outline: none;
    
    /* ESTA ES LA CLAVE PARA QUE NO SEA GIGANTE: */
    width: auto !important;   
    margin-right: 15px;       /* Un poco de aire con el botón de volver */
}

.btn-tool:hover { background: var(--accent); }

/* Footer */
footer {
    text-align: center; padding: 40px; background: #2d3436; color: #636e72; font-size: 0.9rem; margin-top: 60px;
}