/* VARIABLES Y RESET BÁSICO */
:root {
    --primary-color: #66943f;
    --primary-light: rgba(102, 148, 63, 0.1);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --bg-gray: #f9fafb;
}

body { background-color: #f3f4f6; }

/* Aplicamos box-sizing a todos los elementos del formulario */
.hablemos-container * {
    box-sizing: border-box;
}

.hablemos-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.hablemos-header {
    text-align: center;
    padding: 20px 20px 20px;
}

.hablemos-header img {
    display: block;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: auto;
}

.hablemos-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: Lato, sans-serif;
    margin-bottom: 10px;
}

.hablemos-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* INDICADOR DE PASOS */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: var(--primary-color);
}

/* SECCIONES DEL FORMULARIO */
.form-section {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin: 0 30px 30px;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* CAMPOS MODERNOS */
.modern-group { margin-bottom: 20px; width: 100%; }

.modern-label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.modern-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea.modern-input {
    resize: vertical;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* TARJETAS DE SELECCIÓN DE PRIVACIDAD (Diseño Foto) */
.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.privacy-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px 20px 20px; /* Padding extra arriba para el badge */
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Espacio entre el icono izquierdo y los textos */
}

.privacy-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Icono de la izquierda (Fondo redondeado) */
.card-icon-left {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background-color: #f0f1ed; /* Gris clarito por defecto */
    color: #4b5563; /* Gris oscuro por defecto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

/* Textos centrales */
.privacy-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1; /* Ocupa todo el espacio disponible empujando el check a la derecha */
}

.privacy-card-title { 
    font-weight: 800; 
    color: var(--text-main); 
    font-size: 1.1rem;
}

.privacy-card-desc { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    line-height: 1.5; 
}

/* Círculo / Check de la derecha */
.radio-custom-right {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent; /* Oculta el icono de check por defecto */
    transition: all 0.2s ease;
}

.radio-custom-right i {
    font-size: 0.75rem;
}

/* Etiqueta RECOMENDADO */
.badge-recomendado {
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: #405d15; /* Verde oscuro basado en la foto */
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
}

/* === ESTADOS AL SELECCIONAR (Checked) === */
.privacy-card:has(input:checked) {
    border-color: #405d15; /* Borde verde oscuro */
    background-color: #f9fbf7; /* Fondo verde muy tenue */
}

/* Cambia color del icono izquierdo al seleccionar */
.privacy-card:has(input:checked) .card-icon-left {
    background-color: #e5ebd9; /* Fondo verde claro */
    color: #405d15; /* Icono verde oscuro */
}

/* Rellena el check derecho al seleccionar */
.privacy-card:has(input:checked) .radio-custom-right {
    background-color: #405d15;
    border-color: #405d15;
    color: #fff; /* Muestra el check en blanco */
}

/* GRID PARA DATOS PERSONALES */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

/* CHECKBOX RGPD */
.modern-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 20px;
    width: 100%;
}

.modern-checkbox-container input {
    margin-top: 4px;
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.modern-checkbox-container label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* BOTONES */
.submit-container {
    padding: 0 30px 40px;
}

.btn-modern-primary, .btn-modern-secondary {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-modern-primary {
    background-color: var(--primary-color);
    color: white;
    flex: 2; /* Ocupa más espacio */
}

.btn-modern-secondary {
    background-color: #e5e7eb;
    color: var(--text-main);
    flex: 1; /* Ocupa menos espacio */
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px var(--primary-light);
}

.btn-modern-secondary:hover {
    background-color: #d1d5db;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .privacy-grid, .input-grid { grid-template-columns: 1fr; }
    .form-section { margin: 0 15px 20px; padding: 20px; }
    .hablemos-title { font-size: 1.8rem; }
    .nav-buttons { flex-direction: column-reverse; }
}