:root {
    --color-primary: #1a5d3a;
    --color-primary-dark: #12432a;
    --color-bg: #f5f6f4;
    --color-border: #d8dcd6;
    --color-text: #222;
    --color-error: #b3261e;
    --color-error-bg: #fbe9e7;
    --color-success: #1a5d3a;
    --color-success-bg: #e6f2eb;
    --color-warning: #8a6d1d;
    --color-warning-bg: #fdf3d6;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

.site-header {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 1.5rem;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
}

.container {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem 3rem;
}

.centrado {
    text-align: center;
}

.banner-torneo {
    display: block;
    width: 100%;
    max-width: 432px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 1rem;
}

.reglas-destacadas {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.reglas-destacadas h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.reglas-destacadas ul {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.25rem;
}

.reglas-destacadas table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1rem;
    font-size: 0.9rem;
}

.reglas-destacadas th,
.reglas-destacadas td {
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.5rem;
    text-align: center;
}

.reglas-destacadas th {
    background: var(--color-bg);
}

.resumen-inscripcion {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.resumen-inscripcion h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.resumen-inscripcion p {
    margin: 0.35rem 0;
}

.resumen-inscripcion ul {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.resumen-fecha {
    color: #777;
    font-size: 0.85rem;
}

h1 {
    margin-top: 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

label {
    font-weight: 600;
    margin-top: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
select {
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

fieldset {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin: 0.25rem 0;
}

.checkbox input {
    width: auto;
}

button,
.btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
}

button:hover,
.btn:hover {
    background: var(--color-primary-dark);
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    background: #eee;
}

.alert-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.alert-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.site-footer {
    text-align: center;
    color: #777;
    font-size: 0.85rem;
    padding: 1rem;
}

.whatsapp-flotante {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
}

.whatsapp-flotante button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 0;
}

.whatsapp-flotante button:hover {
    background: #1ebe5b;
}

.whatsapp-menu {
    position: absolute;
    right: 0;
    bottom: 68px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
    min-width: 240px;
    overflow: hidden;
}

.whatsapp-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
}

.whatsapp-menu a:last-child {
    border-bottom: none;
}

.whatsapp-menu a:hover {
    background: var(--color-bg);
}
