/* --- VARIABLES --- */
:root {
    /* COLORES PRINCIPALES */
    --primary-hue: 25;
    --primary: hsl(var(--primary-hue), 30%, 35%);       /* #74543F */
    --primary-rgb: 116, 84, 63;                          /* Para transparencias */
    
    --accent: hsl(20, 60%, 40%);                         /* #CD7E62 */
    --accent-rgb: 205, 126, 98;                          /* Para transparencias */
    --accent-hover: hsl(20, 65%, 35%);

    --secondary: hsl(35, 30%, 94%);                      /* #F7F5F0 */
    --bg-body: hsl(40, 20%, 98%);                        /* #FDFCFA */
    
    /* TEXTOS */
    --text-main: hsl(25, 15%, 25%);
    --text-light: hsl(25, 10%, 35%);
    
    /* COLORES BASE & ESTADOS */
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    
    --black: #000000;
    --black-rgb: 0, 0, 0;

    --success: #4CAF50;
    --error: #E53935;
    --warning: #FFC107;
    --border-light: #dddddd;

    /* SOMBRAS (Usando variables RGB) */
    --shadow-sm: 0 4px 6px -1px rgba(var(--primary-rgb), 0.1), 0 2px 4px -1px rgba(var(--primary-rgb), 0.06);
    --shadow-md: 0 10px 15px -3px rgba(var(--primary-rgb), 0.1), 0 4px 6px -2px rgba(var(--primary-rgb), 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(var(--primary-rgb), 0.1), 0 10px 10px -5px rgba(var(--primary-rgb), 0.04);

    /* BORDES */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", serif;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* --- UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--accent);
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.5px;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: 0.3s;
    background-color: var(--white);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-body);
}

.form-group-select {
    position: relative;
}

.form-group-select::after {
    content: '\f078';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    color: var(--accent);
    pointer-events: none;
}

/* --- NOTIFICACIONES TOAST (Elegantes) --- */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--primary);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

/* Variantes de color */
.toast-success { border-left-color: var(--success); }
.toast-success i { color: var(--success); }

.toast-error { border-left-color: var(--error); }
.toast-error i { color: var(--error); }

.toast-info { border-left-color: var(--accent); }
.toast-info i { color: var(--accent); }

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    font-family: "Inter", sans-serif;
}

.toast-msg {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2rem; }
}