/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfcf8;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y navegación */
header {
    background-color: #f5f2e9;
    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;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #b45309;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #b45309;
}

/* Hero section */
.hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f5f2e9;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    background-color: rgba(253, 252, 248, 0.9);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #b45309;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #92400e;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #b45309;
    border: 2px solid #b45309;
}

.btn-secondary:hover {
    background-color: #b45309;
    color: white;
}

/* Secciones principales */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #b45309;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

/* Cards y contenido */
.card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

th {
    background-color: #f5f2e9;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #b45309;
    box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.2);
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Footer */
footer {
    background-color: #f5f2e9;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th,
    td {
        padding: 0.75rem;
    }
}

/* Animaciones suaves */
* {
    transition: all 0.3s ease;
}

/* Indicador de carga para enlaces externos */
.external-link::after {
    content: " ↗";
    font-size: 0.8em;
}

/* Glosario */
.glossary-term {
    background-color: #f5f2e9;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #b45309;
}

.glossary-term h4 {
    color: #b45309;
    margin-bottom: 0.5rem;
}

/* Testimonios */
.testimonial {
    background-color: #f5f2e9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    font-weight: 500;
    color: #666;
    margin-top: 1rem;
}

/* Recursos descargables */
.resource-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.resource-icon {
    width: 40px;
    height: 40px;
    background-color: #b45309;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    font-weight: bold;
}