* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}
.hero h1 { font-size: 2.5em; margin-bottom: 15px; }
.hero p { font-size: 1.2em; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* BOTONES */
.btn {
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1em;
    display: inline-block;
}
.btn-primary { background: #ff6b6b; color: white; }
.btn-primary:hover { background: #ee5a5a; }
.btn-secondary { background: white; color: #667eea; }
.btn-secondary:hover { background: #f0f0f0; }

/* FEATURES */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    flex-wrap: wrap;
}
.feature {
    text-align: center;
    max-width: 200px;
}
.feature span { font-size: 3em; }
.feature h3 { margin: 10px 0 5px; }
.feature p { color: #666; font-size: 0.9em; }

/* FORMULARIOS */
.form-container {
    max-width: 420px;
    margin: 60px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}
.form-container h2 { text-align: center; margin-bottom: 25px; color: #667eea; }

label { display: block; margin: 15px 0 5px; font-weight: 600; font-size: 0.9em; }
input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border 0.3s;
}
input:focus, select:focus { border-color: #667eea; outline: none; }

.form-container .btn { width: 100%; margin-top: 20px; text-align: center; }
.form-footer { text-align: center; margin-top: 20px; color: #666; }
.form-footer a { color: #667eea; text-decoration: none; font-weight: bold; }

/* ALERTAS */
.alert { padding: 12px 15px; border-radius: 8px; margin-bottom: 15px; }
.alert-error { background: #ffe0e0; color: #c00; border: 1px solid #ffaaaa; }
.alert-success { background: #e0ffe0; color: #080; border: 1px solid #aaffaa; }

/* DASHBOARD */
.dashboard { max-width: 700px; margin: 40px auto; padding: 20px; }
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    line-height: 2;
}
.dashboard-actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* TOPBAR */
.topbar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.topbar a { text-decoration: none; color: #667eea; margin-left: 15px; }

/* PAGE */
.page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.page-container h2 { color: #333; margin-bottom: 5px; }
.subtitle { color: #888; margin-bottom: 30px; }

/* GRID CUIDADORES */
.cuidadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.cuidador-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cuidador-foto { margin-bottom: 15px; }
.cuidador-foto img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.foto-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cuidador-info h3 { margin-bottom: 8px; }
.ciudad { color: #888; font-size: 0.9em; margin-bottom: 8px; }
.descripcion { color: #555; font-size: 0.9em; margin-bottom: 10px; }
.precio { color: #667eea; font-weight: bold; font-size: 1.1em; margin-bottom: 15px; }
.empty-state { text-align: center; padding: 60px; color: #888; grid-column: 1/-1; }

/* PROFILE */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 700px) {
    .profile-layout { grid-template-columns: 1fr; }
}
.profile-preview { text-align: center; }
.preview-label { color: #aaa; font-size: 0.85em; margin-top: 10px; }
.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.foto-placeholder.large {
    width: 100px;
    height: 100px;
    font-size: 2.5em;
    margin: 0 auto 15px;
}
.rating { color: #f5a623; font-size: 1.2em; margin: 8px 0; }
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
}
textarea:focus { border-color: #667eea; outline: none; }

/* SOLICITUDES */
.solicitudes-lista { display: flex; flex-direction: column; gap: 20px; }
.solicitud-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #ccc;
}
.solicitud-card.estado-pendiente { border-left-color: #f5a623; }
.solicitud-card.estado-aceptada { border-left-color: #27ae60; }
.solicitud-card.estado-rechazada { border-left-color: #e74c3c; }
.solicitud-card.estado-finalizada { border-left-color: #667eea; }
.solicitud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.solicitud-header h3 { margin: 0; }
.telefono { color: #667eea; font-size: 0.9em; }
.estado-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}
.estado-badge.estado-pendiente { background: #f5a623; }
.estado-badge.estado-aceptada { background: #27ae60; }
.estado-badge.estado-rechazada { background: #e74c3c; }
.estado-badge.estado-finalizada { background: #667eea; }
.solicitud-body { color: #555; line-height: 1.8; margin-bottom: 15px; }
.solicitud-acciones { display: flex; gap: 10px; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }

.alerta-pendientes {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: bold;
}
.btn-alerta {
    background: #f5a623 !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.grupo-solicitudes { margin-bottom: 35px; }
.grupo-titulo { font-size: 1em; margin-bottom: 12px; padding: 6px 12px; border-radius: 6px; display: inline-block; color: white; }
.estado-titulo-pendiente { background: #f5a623; }
.estado-titulo-aceptada { background: #27ae60; }
.estado-titulo-rechazada { background: #e74c3c; }
.estado-titulo-finalizada { background: #667eea; }
.fecha-solicitud { color: #aaa; font-size: 0.8em; margin-top: 5px; }

/* RESENAS */
.resena-form { margin-top: 15px; border-top: 1px solid #eee; padding-top: 15px; }
.estrellas-selector { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; margin: 8px 0 15px; }
.estrellas-selector input { display: none; }
.estrella { font-size: 2em; color: #ddd; cursor: pointer; transition: color 0.2s; }
.estrellas-selector input:checked ~ label.estrella,
.estrellas-selector label.estrella:hover,
.estrellas-selector label.estrella:hover ~ label.estrella { color: #f5a623; }
.resena-enviada { color: #27ae60; font-style: italic; margin-top: 10px; }
.resena-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}
.resena-header { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.estrellas-display { color: #f5a623; font-size: 1.2em; }
.resena-comentario { color: #555; font-style: italic; }

/* WHATSAPP */
.btn-whatsapp {
    background: #25D366;
    color: white !important;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
}
.btn-whatsapp:hover { background: #1da851; }
.btn-wa-small {
    background: #25D366;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 8px;
}
.btn-wa-small:hover { background: #1da851; }

.btn-calendario {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 15px;
    background: #667eea;
    color: white;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: bold;
}
.btn-calendario:hover { background: #5a6fd6; }
